1.2.4 • Published 2 years ago

svelte-grid-responsive v1.2.4

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

Svelte Grid Responsive

npm version License: MIT Build Status Netlify Status

Responsive grid system based on Bootstrap for Svelte.

Installation

npm i svelte-grid-responsive
// OR
yarn add svelte-grid-responsive

Note: to use this library in sapper, install as devDependency. See the link.

Demo Link

Local demo:

git clone https://github.com/andrelmlins/svelte-grid-responsive.git
cd svelte-grid-responsive
npm install && npm run dev

Examples

An example of how to use the library:

<script>
  import Grid from "svelte-grid-responsive";
</script>

<Grid container gutter={12}>
  <Grid xs={12} md={4} lg={3}>
    xs=12 md=4 lg=3
  </Grid>
  <Grid xs={12} md={4} lg={3}>
    xs=12 md=4 lg=3
  </Grid>
  <Grid xs={12} md={4} lg={3}>
    xs=12 md=4 lg=3
  </Grid>
  <Grid xs={12} md={4} lg={3}>
    xs=12 md=4 lg=3
  </Grid>
</Grid>

Properties

Component props:

PropDefaultTypeDescription
containerfalseboolDefines whether the grid is a container
gutternullnumberGrid spacing in the container
columns12numberSetting columns count in the container
ordernullnumberOrder the columns
xsnullnumberSize in extra small screen
smnullnumberSize in small screen
mdnullnumberSize in medium screen
lgnullnumberSize in large screen
xlnullnumberSize in extra large screen
xsOffsetnullnumberOffset in extra small screen
smOffsetnullnumberOffset in small screen
mdOffsetnullnumberOffset in medium screen
lgOffsetnullnumberOffset in large screen
xlOffsetnullnumberOffset in extra large screen

NPM Statistics

Download stats for this NPM package

NPM

License

Svelte Grid Responsive is open source software licensed as MIT.

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago