
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
github.com/andrelmlins/svelte-grid-responsive
Advanced tools
Responsive grid system based on Bootstrap for Svelte.
npm i svelte-grid-responsive
// OR
yarn add svelte-grid-responsive
Note: to use this library in sapper, install as devDependency. See the link.
Local demo:
git clone https://github.com/andrelmlins/svelte-grid-responsive.git
cd svelte-grid-responsive
npm install && npm run dev
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>
Component props:
| Prop | Default | Type | Description |
|---|---|---|---|
| container | false | bool | Defines whether the grid is a container |
| gutter | null | number | Grid spacing in the container |
| columns | 12 | number | Setting columns count in the container |
| order | null | number | Order the columns |
| xs | null | number | Size in extra small screen |
| sm | null | number | Size in small screen |
| md | null | number | Size in medium screen |
| lg | null | number | Size in large screen |
| xl | null | number | Size in extra large screen |
| xsOffset | null | number | Offset in extra small screen |
| smOffset | null | number | Offset in small screen |
| mdOffset | null | number | Offset in medium screen |
| lgOffset | null | number | Offset in large screen |
| xlOffset | null | number | Offset in extra large screen |
Download stats for this NPM package
Svelte Grid Responsive is open source software licensed as MIT.
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.