- Docs
- Components
- 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
Playground
Every prop, live, and the code it takes.
Engineering
Finance
People
Sales
Support
Gap
Justify
import { Badge, Inline } from "@qeetrix/react";
<Inline>
<Badge>Engineering</Badge>
<Badge>Finance</Badge>
<Badge>People</Badge>
<Badge>Sales</Badge>
<Badge>Support</Badge>
</Inline>02
A row
Side by side, centred across, sm (8px) apart by default.
<Inline>
<Button variant="soft" icon={DownloadIcon}>Export</Button>
<Button icon={PlusIcon}>Invite users</Button>
</Inline>03
Wrapping
It wraps onto new lines when space runs out; wrap={false} keeps one line.
EngineeringFinancePeopleSalesSupportDesignOperationsLegal
<Inline gap="xs">
{groups.map((group) => <Badge key={group}>{group}</Badge>)}
</Inline>04
Ends
justify="between": one thing at the start, another at the end.
Recent sign-ins
<Inline justify="between">
<Heading level={3} size="title-sm">Recent sign-ins</Heading>
<Button variant="ghost">View all</Button>
</Inline>05
Baseline
align="baseline": text of two sizes on one line.
1,284users
<Inline align="baseline">
<Text size="lg" weight="semibold">1,284</Text>
<Text size="sm" tone="subtle">users</Text>
</Inline>