Skip to content
Cynco UI

Components · Selection

IconCheckbox

A toggle that looks like a small secondary button with an icon; checked shows the primary border and a check mark in its corner.

import { IconCheckbox } from "@cynco-labs/ui";

Example

Use

Toggling views and options in toolbars and attach/cancel forms.

Props

Button props plus checked, onCheckedChange, icon, iconOrientation (left with a label, center icon-only, which needs an aria-label).

Notes

Default size sm. State is exposed as aria-pressed and shown by the corner check mark, not by colour alone. The mark sits slightly outside the button, so a clipping parent (overflow-hidden, or the primary variant's own clip) hides part of it.

Source Demo source Markdown