Responsive
Responsive layout helpers
Layout utilities for responsive design.
Show
Conditionally show content by breakpoint:
Breakpoints
| breakpoint | min-width |
|---|---|
| sm | 640px |
| md | 768px |
| lg | 1024px |
| xl | 1280px |
Grid
Responsive grid layouts:
Column options
Flex
Flexible layouts:
Props
Show
| prop | type | description |
|---|---|---|
| above | "sm" | "md" | "lg" | "xl" | Show above this size |
| below | "sm" | "md" | "lg" | "xl" | Show below this size |
| children | ReactNode | Content to show |
Grid
| prop | type | default | description |
|---|---|---|---|
| cols | 1 | 2 | 3 | 4 | 2 | Columns |
| gap | "sm" | "md" | "lg" | "md" | Spacing |
| children | ReactNode | - | Grid content |
Flex
| prop | type | default | description |
|---|---|---|---|
| direction | "row" | "col" | "row" | Direction |
| align | "start" | "center" | "end" | "stretch" | "start" | Align-items |
| justify | "start" | "center" | "end" | "between" | "start" | Justify-content |
| gap | "sm" | "md" | "lg" | "md" | Spacing |
| wrap | boolean | false | Flex-wrap |
| children | ReactNode | - | Flex content |