Button group
shadcn Button Group on Base UI, Maia preset, holding Evantis buttons. Related actions joined into one control; every group has a label.
Orientation
- Horizontal by default; vertical for steppers and short stacks.
- Every group has an aria-label saying what the actions are for.
Size
- Set the size on each button; keep one size per group.
- LG next to caregiver fields (48px), MD elsewhere.
Nested
- Nest groups to keep related sets apart with a gap.
- Icon-only buttons are square and always have an aria-label.
Separator
- Filled buttons need a separator; outlined buttons share their border.
- Keep separated groups to two or three actions.
Split
- The main action has a label; the extra one can be icon-only.
- Both sides do something different, so both are named.
Dropdown menu
- The chevron opens more of the same kind of action.
- The menu opens under the whole group, left edges aligned.
- The menu's items start with a verb, like buttons.
Select
- Pair a choice with the action that uses it.
- The select is labelled for screen readers by what it chooses.
Popover
- The chevron opens a small panel for a more specific request.
- The panel title says what it is for.