Inline

An inline manages the horizontal layout of direct children using flexbox.

Installation

Package installation information
Installyarn add @atlaskit/primitives
SourceBitbucket.org, (opens new window)
npm@atlaskit/primitives, (opens new window)
Bundleunpkg.com, (opens new window)

Props

alignBlock

Description

Used to align children along the block axis (typically vertical).

Type"center" | "start" | "end" | "baseline" | "stretch"

alignInline

Description

Used to align children along the inline axis (typically horizontal).

Type"center" | "start" | "end" | "stretch"

as

Description

The DOM element to render as the Inline. Defaults to div.

Type"div" | "dl" | "li" | "ol" | "span" | "ul"

children

Required
Description

Elements to be rendered inside the Inline.

Typestring | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

data-testid

Description

data-testid is strictly controlled through the testId prop. This lets consumers know that this data attribute will not be applied.

Typenever

grow

Description

Used to set whether the container should grow to fill the available space.

Type"fill" | "hug"

ref

Description
No description.
Type((instance: any) => void) | RefObject<any>

role

Description

Accessible role.

Typestring

rowSpace

Description

Represents the space between rows when content wraps. Used to override the space value in between rows.

Type"space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000"

separator

Description

Renders a separator string between each child. Avoid using separator="•" when as="ul" | "ol" | "dl" to preserve proper list semantics.

Typestring | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

shouldWrap

Description

Used to set whether children are forced onto one line or will wrap onto multiple lines.

Typeboolean

space

Description

Represents the space between each child.

Type"space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000"

spread

Description

Used to distribute the children along the main axis.

Typestring"space-between"

testId

Description

A unique string that appears as data attribute data-testid in the rendered code, serving as a hook for automated tests.

Typestring

xcss

Description

Apply a subset of permitted styles powered by Atlassian Design System design tokens.

Typefalse | (XCSSValue<"appearance" | "color" | "maxWidth" | "grid" | "borderColor" | "clipPath" | "filter" | "marker" | "mask" | "height" | "width" | "translate" | "content" | "border" | ... 487 more ... | "viewTimeline", DesignTokenStyles, ""> & ... 4 more ... & { ...; })
Was this page helpful?
We use this feedback to improve our documentation.
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License