Icon button

An icon button runs an action with an icon alone. It has no visible text, so its name is a required prop, which is also its tooltip.

Previewapps/web/components/ui/KbButton.tsx

Variants and shape

Ghost is the default for bars and rows. Secondary adds a plate. Round is for bar triggers.

Show code
<KbIconButton label="Close details"><CloseIcon /></KbIconButton>
<KbIconButton label="Close details" variant="secondary" round><CloseIcon /></KbIconButton>
<KbIconButton label="Close details" size="sm"><CloseIcon /></KbIconButton>