Layout
Group
Content section — card or plain — with header, description and separators between siblings.
import { Group, GroupContainer, GroupHeader, GroupDescription, GroupExpandedContent } from "datui";Playground
<Group mode="card" padding="m" separator="auto" />Examples
Groups
Contact
Phone: +1 555 0100
Email: mia@example.com
Only friends can see this.
Plain group
OneTwoThree
Accessibility
- Renders
<section>labelled by itsheaderviaaria-labelledby(unless you passaria-label). role="tabpanel"getstabIndex=0automatically.- Sibling separators are
aria-hidden.
API
Group
Content section — a card or a plain block — with header, description and dividers between siblings.
| Prop | Type | Default | Description |
|---|---|---|---|
| as | ElementType<any, keyof IntrinsicElements> | section | |
| className | string | — | |
| description | ReactNode | — | Footnote after the content. |
| header | ReactNode | — | Usually a `Header`. Labels the section via `aria-labelledby`. |
| mode | GroupMode | — | `card` is a rounded surface, `plain` is flush. Auto: `card` at regular width, `plain` on compact screens. |
| padding | "s" | "m" | m | Vertical padding inside a card. |
| separator | "auto" | "show" | "hide" | auto | Divider after the group: `auto` between siblings only, `show` always, `hide` never. |
GroupContainer
The group surface without header/description slots. `role="tabpanel"` makes it focusable.
| Prop | Type | Default | Description |
|---|---|---|---|
| as | ElementType<any, keyof IntrinsicElements> | section | |
| className | string | — | |
| mode | GroupMode | — | `card` is a rounded surface, `plain` is flush. Auto: `card` at regular width, `plain` on compact screens. |
| padding | "s" | "m" | m | Vertical padding inside a card. |
| separator | "auto" | "show" | "hide" | auto | Divider after the group: `auto` between siblings only, `show` always, `hide` never. |
GroupHeader
Wrapper for the group's `Header`.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — |
GroupDescription
Footnote under the group content.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — |
GroupExpandedContent
Content that runs edge to edge inside the group, e.g. a horizontal scroller.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| direction | "inline" | "block" | inline | Lay children out in a row (`inline`, scrolls horizontally) or a column. |