New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/andrelmlins/svelte-grid-responsive

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/andrelmlins/svelte-grid-responsive

  • v0.0.0-20220730025546-7b9e92d35278
  • Source
  • Go
  • Socket score

Version published
Created
Source

Svelte Grid Responsive

npm versionLicense: MITBuild StatusNetlify 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.

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.

FAQs

Package last updated on 30 Jul 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc