k8ordo
  • UI
  • Form
  • State
  • Router
  • Static
  • Server
Switch to dark mode
  • Get Started
  • Theming
  • i18n
  • Components
  • Hooks
  • Helpers
  • AI
Open navigation
Buttons
  • Button
  • IconButton
Navigation
  • Anchor
  • Tabs
  • Breadcrumb
  • Pagination
Forms
  • TextField
  • Textarea
  • NumberField
  • Select
  • Checkbox
  • CheckboxCard
  • CheckboxGroup
  • Switch
  • PasswordInput
  • Radio
  • RadioCard
  • Autocomplete
  • Slider
  • FileField
  • FormControl
  • Form
Data Display
  • Accordion
  • Avatar
  • Badge
  • Card
  • Code
  • Table
  • Heading
Feedback
  • Alert
  • Skeleton
  • Spinner
  • Toast
  • Progress
Overlays
  • Dialog
  • Drawer
  • Modal
  • Popover
  • DropdownMenu
  • Tooltip
  • ListBox
Layout
  • Stack
  • Grid
  • Separator
  • ScrollLinked
Media
  • Icons
k8ordo

React libraries that use Baseline features without holding back.

Packages
  • @k8ordo/ui
  • @k8ordo/form
  • @k8ordo/state
  • @k8ordo/router
  • @k8ordo/static
  • @k8ordo/server
UI
  • Get Started
  • Theming
  • i18n
  • Components
  • Hooks
  • Helpers
  • AI Chat
  • Generative UI
  • AI Agents
  • Storybook
Resources
  • GitHub
  • npm

© 2026 k8o — MIT License

Typeset in Noto Sans JP & M PLUS 2

Components

Buttons
  • Button
  • IconButton
Navigation
  • Anchor
  • Tabs
  • Breadcrumb
  • Pagination
Forms
  • TextField
  • Textarea
  • NumberField
  • Select
  • Checkbox
  • CheckboxCard
  • CheckboxGroup
  • Switch
  • PasswordInput
  • Radio
  • RadioCard
  • Autocomplete
  • Slider
  • FileField
  • FormControl
  • Form
Data Display
  • Accordion
  • Avatar
  • Badge
  • Card
  • Code
  • Table
  • Heading
Feedback
  • Alert
  • Skeleton
  • Spinner
  • Toast
  • Progress
Overlays
  • Dialog
  • Drawer
  • Modal
  • Popover
  • DropdownMenu
  • Tooltip
  • ListBox
Layout
  • Stack
  • Grid
  • Separator
  • ScrollLinked
Media
  • Icons

Grid

Layout primitive that arranges children on a CSS grid, with a fixed column count or auto-fill / auto-fit.

View in Storybook

Import

Usage

A
B
C
D
E
F

Fixed columns

A
B
C
D
E
F
G
H
A
B
C
D
E
F
G
H

Auto-fill

With cols="auto-fill" or "auto-fit", minItemSize controls the minimum width of each cell so the grid reflows responsively.

A
B
C
D
E
F
G
H

Props

children?
Type: ReactNode
Default: -
cols?
Type: 1|2|3|4|5|6|'auto-fill'|'auto-fit'
Default: 'auto-fill'
gap?
Type: GapSize
Default: 'md'
minItemSize?
Type: 24|32|40|48|64
|80
Default: 48
PropTypeDefault
children?ReactNode-
cols?1|2|3|4|5|6|'auto-fill'|'auto-fit''auto-fill'
gap?GapSize'md'
minItemSize?24|32|40|48|64|8048

Type base (some attrs are managed internally): HTMLAttributes<HTMLDivElement>

import { Grid } from '@k8ordo/ui';
<Grid cols={3} gap="md">
  {items.map((label) => <Card>{label}</Card>)}
</Grid>
<Grid cols={2} gap="sm">…</Grid>
<Grid cols={4} gap="sm">…</Grid>
<Grid cols="auto-fill" minItemSize={32} gap="md">…</Grid>