Skip to content

UIButton

Variants
Sizes
With icon
Disabled & full width
PropTypeDefaultDescription
labelstringrequiredButton text
iconUIIconName | ReactNodeIcon to the left of the label
variant"primary" | "secondary" | "ghost" | "danger" | "success""secondary"Visual style
size"sm" | "md""md"Button size
disabledbooleanfalseDisables the button
fullWidthbooleanfalseStretches to fill container width
onClick() => voidClick handler
import { UIButton, Icon } from "tango-api";
<UIButton label="Save" variant="primary" icon={Icon.Check} onClick={handleSave} />