Copy this complete component into a page file. Edit and run it in the Playground.
Loading editor…
Invisible spacing or flex grow gap.
| Prop | Type | Default | Description |
|---|---|---|---|
axis | "x" | "y" | "both" | "y" | Direction. |
size | "small" | "medium" | "large" | number | string | 16 | Standard presets resolve to 8px, 16px, and 24px; numeric and CSS-length values remain supported. |
flex | boolean | number | false | Grow into available space. |