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
x
Extra small
x
Small
x
Medium
x
Syncing
x
↑ 12% vs last 5 exports
x

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.
PrimaryMutedDestructiveSuccessWarningInfoOutline
PrimaryMutedDestructiveOutline
PrimaryMutedDestructiveOutline
PendingIn ReviewIn ProgressNot StartedCancelledApproved
PendingIn ReviewIn ProgressNot StartedCancelledApproved

Avatar

Profile photo with initials fallback. size is sm, md, or lg. Optional border. AvatarGroup stacks faces; max defaults to 4.
ACJDMK
ACJDMK
RLTSYW
ACJDMK+3
ACJDMK+3
ACJDMK+2

Step

Wizard progress. Horizontal or vertical. Linear by default (cannot skip ahead). value="" / undefined leaves no step current; value={null} marks every step completed.
1
AccountProfile basics
2
DetailsWorkspace info
3
ConfirmReview and finish
3
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.
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⌘ + ⏎⏎