IconButton
A circle with an icon, a required name, and a tooltip that says it.
<IconButton icon={icons.filter} aria-label="Filter" />import { IconButton } from "@logicplanes/kaeso-ui";Props
aria-labelstringThe accessible name, also shown as the tooltip. Required.
disabledReasonstringWhy it is disabled, shown as a tooltip; it stays focusable so people can read it.
hrefstringMakes it a link to this address.
iconIconSvgElementThe icon; give the button an
aria-label.loadingbooleanShows that work is underway and ignores clicks until it ends.
shortcutstring[] | string[][]A shortcut shown in the tooltip.
size"md" | "xs" | "sm" | "lg" | "xl" = smThe diameter, from
xs(24px) toxl(44px).tooltipboolean = trueTurn the tooltip off (rare: when a visible label sits next to it).
tooltipSide"top" | "bottom" | "left" | "right" = topWhere the tooltip with its name appears.
variant"danger" | "secondary" | "primary" | "ghost" | "quiet" | "soft" | "danger-secondary" = ghostThe look, as on
Button.