Components
Inline
Horizontal layout container based on flexbox row
Overview
Inline is a horizontal layout container. display: flex and flex-direction: row are applied by default.
- Polymorphic — Render as any HTML element via the
asprop - Sprinkles support — All design token props available
Basic Usage
Alignment and Spacing
Interactive Elements
Inline and Stack are layout containers and have no hover or pressed styles. For something people click, use a component that owns its states, such as Button or IconButton.
Props
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
as | ElementType | 'div' | No | Element to render |
gap | Space token | - | No | Space between children |
align | Sprinkles['alignItems'] | - | No | Cross-axis alignment (align-items) |
justify | Sprinkles['justifyContent'] | - | No | Main-axis alignment (justify-content) |
wrap | Sprinkles['flexWrap'] | - | No | Whether children wrap |
Guidelines
- Use Inline for horizontal layouts and Stack for vertical layouts
- Inline can also be used for simple layouts without interaction states
- Combining
wrap="wrap"withgapcreates an auto-wrapping layout