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 as prop
  • Sprinkles support — All design token props available

Basic Usage

10:30 AM

Alignment and Spacing

Left

Right

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

PropTypeDefaultRequiredDescription
asElementType'div'NoElement to render
gapSpace token-NoSpace between children
alignSprinkles['alignItems']-NoCross-axis alignment (align-items)
justifySprinkles['justifyContent']-NoMain-axis alignment (justify-content)
wrapSprinkles['flexWrap']-NoWhether 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" with gap creates an auto-wrapping layout