SimpleGrid
LayoutEqual-width CSS Grid wrapper with configurable column count.
Grid layout with equal-width columns. cols accepts a fixed number or a responsive object with breakpoint keys (base, sm, md, lg, xl). Uses scoped <style> tags for breakpoint CSS — no Tailwind utilities needed.
Usage
import { SimpleGrid } from "nosible-ux"
export default function Example() {
return (
<SimpleGrid cols={3} spacing="md">
<div>Signal A</div>
<div>Signal B</div>
<div>Signal C</div>
</SimpleGrid>
)
}Examples
Responsive columns
Signals today: 1,240
Matched alerts: 38
Watchlists: 12
Data sources: 94
Props
| Name | Type | Default | Description |
|---|---|---|---|
cols | SimpleGridCols | undefined | — | Number of columns. Accepts a fixed number or a responsive object with breakpoint keys (sm=640px · md=768px · lg=1024px · xl=1280px). Default: 1. |
spacing | number | "xs" | "sm" | "md" | "lg" | "xl" | undefined | — | Gap between grid cells (row and column). Accepts a pixel number or token ('xs'|'sm'|'md'|'lg'|'xl'). Default: 20 (base grid). |
verticalSpacing | number | "xs" | "sm" | "md" | "lg" | "xl" | undefined | — | Override gap for the vertical (row) axis only. Defaults to the spacing value. |