- Docs
- Patterns
- User detail
User detail
A record's page: back to the list, its status and actions, its facts in cards, and its activity beside them.
- Built from
- 6 componentsPage header, Badge, Grid
01 — The pattern
The page, live.
02 — Built from
The components, and their jobs here.
| Component | Here |
|---|---|
| Page header | Back, the name, status and actions |
| Badge | The status beside the title |
| Grid | A main column and a side one |
| Card | A section per topic |
| Description list | The facts |
| Timeline | What happened lately |
03 — The code
Its skeleton.
<PageHeader
back={<PageHeaderBack href="/users">Users</PageHeaderBack>}
title="Priya Sharma"
status={<Badge tone="success">Active</Badge>}
actions={<Button>Edit profile</Button>}
/>
<PageContent>
<Grid columns={{ base: 1, large: 3 }} gap="xl">
<GridItem span={{ large: 2 }}>
<Card title="Profile" level={2}>
<DescriptionList>…</DescriptionList>
</Card>
</GridItem>
<Card title="Recent activity" level={2}>
<Timeline aria-label="Recent activity">…</Timeline>
</Card>
</Grid>
</PageContent>04 — Rules
What makes it work.
- Back, not a breadcrumb, one level down.
- Facts as terms and values; an empty one shows —.
- The activity is recent: the full log is a Table on its own page.