Skip to content
nexubDesign System
v2.4.0

Components · Layout

Grid

StableSince v0.0.1

CSS Grid layout primitive.

import { Grid } from '@nexub/react';

Examples

2-column

3-column

Props

Props
PropTypeDefaultDescription
colsnumber | string—Number of columns or a custom grid-template-columns value.
gap'xs' | 'sm' | 'md' | 'lg' | 'xl'—Gap between grid cells using design tokens.
align'start' | 'center' | 'end' | 'stretch'—Sets the align-items CSS property for all grid cells.

On iOS & Android