← Inventory
Group
Horizontal flex container for grouping related elements with consistent spacing.
ConcreteTerrazzoOakBrassLinen
Usage
import { Group, GroupProps } from "@desk/ui/components/group";Best practices
Groupis a horizontal cluster of related controls (buttons, chips) that canwrap; for a vertical stack useStack, for full flex control useFlex.Control horizontal distribution with
position(its justify prop) and vertical alignment withalign; bothgapandwrapaccept per-breakpoint objects.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| align | ResponsiveValue<FlexAlign> | Align items (vertical alignment). Can be responsive. | |
| gap | ResponsiveValue<"base" | "none" | "2xs" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "3xs"> | Gap between items. Can be responsive. | |
| position | ResponsiveValue<FlexJustify> | Justify content (horizontal alignment). Can be responsive. | |
| responsiveMode | ResponsiveMode | Responsive mode: "screen" (viewport) or "container" (container queries). | |
| wrap | ResponsiveValue<boolean> | Allow items to wrap. Can be responsive. |
Also exports
- interface
GroupProps