Inline
Children in a row with even space between them, wrapping when they don't fit.
The row to Stack’s column: a toolbar, a title with its badge, a pair of buttons. Children are
centered across the row and wrap onto more rows when they don’t fit; justify="between" pushes
them to the ends.
Dependencies
What it's built from and what's built from it in Mocha, read from the imports in its source.
| Uses | Stackprimitive |
|---|---|
| Used by | Nothing yet. |
| Packages | @ui-sdk/core@0.1.0-beta.20@ui-sdk/react@0.1.0-beta.20tailwind-variants@4.1.0 |
Installation
Set the project up for Mocha once first, as Getting started shows. Then add it with the CLI, or by hand.
With the CLI
Manually
Install its packages:
Add the components it uses first, listed under Dependencies.
Then copy the source:
API reference
Generated from Mocha's types. Props marked ours are added here; the rest come from the ui-sdk part it wraps. Every part also accepts its element's native attributes.
Inline
Children in a row with even space between them, wrapping when they don't fit.
- alignours
How children line up across the row. Centered unless you say otherwise.
Type NonNullable<"center" | "start" | "end" | "baseline" | "stretch">
- gapours
The space between children, a step on the spacing scale.
Type NonNullable<"xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "none" | "3xs" | "2xs" | "4xl">
- justifyours
Where children sit along the row;
betweenpushes them to the ends.Type NonNullable<"center" | "start" | "end" | "between">
- renderours
The element to render instead of a
<div>, like<ul />or<nav />.Type RenderProp
- wrapours
Whether children wrap onto more rows when they don't fit. They do unless you say otherwise.
Type boolean