Skip to content

Inline

Inline is a horizontal flex row with optional wrapping. Use it to lay out groups of items side-by-side with consistent spacing.

Basic

Tailwind v4
vue
<Inline>
  <Badge>Alpha</Badge>
  <Badge variant="success">Beta</Badge>
  <Badge variant="warning">Gamma</Badge>
</Inline>

Gap variants

gap="none"

gap="xs"

gap="sm"

gap="md"

gap="lg"

gap="xl"

Tailwind v4
vue
<Inline gap="none">...</Inline>
<Inline gap="xs">...</Inline>
<Inline gap="sm">...</Inline>
<Inline gap="md">...</Inline>
<Inline gap="lg">...</Inline>
<Inline gap="xl">...</Inline>

Wrap behavior

wrap=true (default)

wrap=false

Tailwind v4
vue
<Inline :wrap="true">...</Inline>   <!-- default -->
<Inline :wrap="false">...</Inline>

Justify between

Tailwind v4
vue
<Inline justify="between">
  <span>Section title</span>
  <Button variant="secondary" size="sm">Action</Button>
</Inline>

Props

PropTypeDefaultDescription
gap'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl''sm'Space between items
align'start' | 'center' | 'end' | 'baseline''center'Cross-axis alignment (align-items)
justify'start' | 'center' | 'end' | 'between''start'Main-axis distribution (justify-content)
wrapbooleantrueWhether items wrap onto multiple lines

class and style attributes are forwarded to the root element.

Private — Jetpack Labs internal use only