A list component available in Small, Medium, and Large sizes. Supports grouped list items and RTL layout.
Loading demo: list-real-world
npx sdaia-ui@latest add list
import { List } from '@/components/ui/List';<List size="medium" />List with state Default.
Loading demo: list-default
List available in Small, Medium, and Large sizes.
Loading demo: list-sizes
Props for the DropdownListHeader component.
Prop | Type | Default | Required |
|---|---|---|---|
type | 'User' | 'Header' | 'User' | optional |
avatarSrc | string | - | optional |
avatarAlt | string | - | optional |
name | string | - | optional |
string | - | optional | |
label | string | - | optional |
className | string | - | optional |
dir | "ltr" | "rtl" | — | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | Each row fills the width of its container, with content at the start and end. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Same, with the mobile token values. Main text stays on one line and secondary text wraps. |