An Interest In:
Web News this Week
- April 20, 2024
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
October 15, 2021 03:11 pm GMT
Original Link: https://dev.to/madeelahsan/a-simple-css-grid-system-5a5i
A simple CSS Grid System
sc-css-grid-system
Simple CSS grid system component built with styled component for react.
sc-css-grid-system utilizes the power of CSS grid and styled-components to easily create responsive grids.
key features
- responsive breakpoint xs,sm,md,lg,xl
- responsive gutter/gap option
- really easy to use
Responsive Grid Example:
import {Grid} from 'sc-css-grid-system';function CssGridSystem() { return ( <Grid xs={2} sm={3} md={4} lg={6} xl={12} gap={30}> <div>1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> <div>6</div> <div>7</div> <div>8</div> <div>9</div> <div>10</div> <div>11</div> <div>12</div> </Grid> );}
for complete documentation and demo:
NPM
Original Link: https://dev.to/madeelahsan/a-simple-css-grid-system-5a5i
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To