Skip to content

Inline

import { Inline } from 'yarcl';
xs123
sm123
md123
lg123
xl123
justify="between"
<Inline justify="between">
<Text>Title</Text>
<Inline gap="sm">
<Button variant="outline">Cancel</Button>
<Button>Save</Button>
</Inline>
</Inline>

Children are centered vertically and wrap by default. Set wrap={false} to keep them on one line.

PropTypeDefaultDescription
alignAlignCross-axis alignment of children.
asLayoutElement'div'Element to render.
gapSpacingconfigconfig.defaults.gapSpace between children, from the spacing config.
justifyJustifyMain-axis distribution of children.
wrapbooleantrueWraps children onto new lines when they don't fit.