Skip to main content
  1. Docs
  2. Components
  3. Layout

Inline

A horizontal flow with a gap from the space scale, that wraps when space runs out.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<div>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • Buttons side by side.
  • Badges, tags, a title and its action.
Not for

02

Anatomy

  1. 1inline<div>The row: data-gap, data-align, data-justify.
  2. 2box<div>A child: the gap is between, and between lines when it wraps.

03

Do and don't

Let it wrap
DoBadges wrap to the next line where it's narrow.
Don'twrap={false} for a list that can grow: it overflows.

04

Content

  • An Inline has no words of its own.
  • Buttons in a row: the primary last.
Next — InlineAPI