bon-ui
Components
Button
Button variants use primary, gray, outline, ghost, destructive, and outline-destructive tokens.
Button group
Button groups use primary, gray, outline, ghost, destructive, and outline-destructive tokens.
Overflow list
Links that do not fit the row collapse into a more menu. The active item stays on the row when it still fits, and the more control shows the active style when that item is in the menu.
Button overflow
Actions that do not fit the row collapse into a more menu. Delete stays on the row when it still fits.
Button group overflow
Outline actions stay one fused group. Actions that do not fit collapse into the last More segment.
Toggle
Icon-button style two-state control. Pressed fills primary (primary variant inverts to muted). Not Switch or ButtonGroup.
Progress
Read-only completion. ProgressRoot + ProgressTrack + ProgressIndicator. value={null} for indeterminate. Track size xs | sm | md; variant bar (default) or segments.
Upload
Extra small
Small
Medium
Syncing
↑ 12% vs last 5 exports
Badge
Variants use primary, muted, destructive, success, warning, and info tokens. Soft fill by default; type outline uses a neutral border like Button, with full semantic text, icon, and dot color. Leading icons via icon, check, or dot.
Avatar
Profile photo with initials fallback. size is sm, md, or lg. Optional border. AvatarGroup stacks faces; max defaults to 4.
Step
Wizard progress. Horizontal or vertical. Linear by default (cannot skip ahead). value="" / undefined leaves no step current; value={null} marks every step completed.
AccountProfile basics
DetailsWorkspace info
ConfirmReview and finish
ConfirmReview and finish
CheckList
Independent onboarding tasks. value is completed ids (any order). size md (default) or sm. Item error / progress show cancel or CircleHalf (In Progress) icons with semantic title colors. Click indicator or title to toggle; description is not clickable.
md
Upload a host, container, or cloud account.
Connect API keys or an IAM role.
Choose targets and a schedule.
Kick off a scan and review findings.
sm
Upload a host, container, or cloud account.
Connect API keys or an IAM role.
Choose targets and a schedule.
Kick off a scan and review findings.
Notice
Inline page banner. size is md (default) or lg. Variants use info, success, warning, and destructive tokens.
Workspace is in read-only mode
Billing is paused. Restore a plan to edit.
Changes saved
Your workspace settings were updated.
Export is limited
Free workspaces can export 3 reports per week.
Could not sync members
The directory request failed. Try again in a few minutes.
New billing period started
Workspace is in read-only mode
Billing is paused. Restore a plan to edit.
Export is limited
Free workspaces can export 3 reports per week.
New billing period started
Kbd
Keycaps for shortcuts. size is sm or md. Group combos with KbdGroup. Keys invert inside TooltipPopup.
⌘⇧⌥⌃Esc
⌘⇧⌥⌃Esc
⌘ + KCtrl + B⌘ + ⏎⏎