Two-state buttons, alone or in a group.
Installation
pnpm add krz-uiUsage
import { Toggle, ToggleGroup } from "krz-ui";<Toggle aria-label="Bold"><BoldIcon /></Toggle>
<ToggleGroup
type="single"
defaultValue="left"
aria-label="Text alignment"
items={[
{ value: "left", label: <AlignLeftIcon />, "aria-label": "Align left" },
{ value: "center", label: <AlignCenterIcon />, "aria-label": "Align center" },
]}
/>