
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
styled-css-grid
Advanced tools
styled-css-grid
A tiny (~2kb) CSS grid layout for React, built with styled-components 💅.
See the website.
Install React and styled-components, then:
$ yarn add styled-css-grid
import React from "react";
import { Grid, Cell } from "styled-css-grid";
const MyGrid = () => (
<Grid columns={2} gap="2px">
<Cell>foo</Cell>
<Cell height={2}>bar</Cell>
<Cell width={2}>baz</Cell>
</Grid>
);
Cell
A cell. Not too much to say...
Props:
width
: Cell width in units, default is 1
.height
: Cell height in units, default is 1
.middle
: Vertically align the contents of the cell. Default is false
.center
: Horizontally align the text contents of the cell. Default is false
.Grid
Wrap your cells in Grid
. Pretty simple.
Props:
columns
: Number of columns to draw, default is 12
.gap
: Gap between cells. Default is "8px"
.minRowHeight
: Minimum height of each row. Default is "20px"
.flow
: The grid-auto-flow CSS property. Default is "row dense"
.FAQs
A tiny CSS grid layout for React, built with styled-components
The npm package styled-css-grid receives a total of 6,671 weekly downloads. As such, styled-css-grid popularity was classified as popular.
We found that styled-css-grid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.