Foundation / Layout
Grid
server22.25 kB
@stellaria/nebula-webGridPropsPreview
Props
7| Prop | Type | Default |
|---|---|---|
children | ReactNode | — |
className Composes with the classes `Box` computes instead of replacing them. | string | — |
columns How many columns a full row spans. It is the unit `Grid.Col`'s `span` counts against, so changing it rescales every child at once. | number | 12 |
component The element it paints. | (ElementType & C) | "div" |
grow Lets the columns of the last row stretch to fill it instead of leaving a gap on the end. Only affects a row that did not fill up. | boolean | false |
gutter Gap between columns and rows. Replaces `gap`, which `Grid` does not accept. | SpacingValue | "md" |
wrap Wraps columns that do not fit onto the next row. Turn it off and they shrink instead, which is what you want for a row that must stay one line. | boolean | true |
Parts
1Grid.ColAlso accepts
On top of its own props, this component forwards these groups.
Style props · 125