Inline

The Inline component arranges related content horizontally with consistent spacing, alignment, and wrapping.

Usage & Examples

Toolbar Row

Project members
DesignEngineering
toolbar-row.tsx
<Inline gap="sm" align="center" justify="between">
  <strong>Project members</strong>
  <Inline gap="xs">
    <Badge>Design</Badge>
    <Badge>Engineering</Badge>
    <Button size="small">Invite</Button>
  </Inline>
</Inline>

Props API

9 props
Columns
Inline props API
Default
Description
alignLayoutAlignNopropsAlign prop for LayoutPrimitive.
asElementTypeNopropsAs prop for LayoutPrimitive.
childrenReactNodeNopropsContent rendered inside the component.
classNamestringNostylingAdditional CSS class names for the component root.
data-testidstringNotestingTest id used to identify the component in tests.
gapLayoutGapNoprops"md"Gap.
justifyLayoutJustifyNopropsJustify prop for LayoutPrimitive.
testIdstringNopropsTest id used to identify the component in tests.
wrapbooleanNopropstrueWrap.