Skip to main content

Button


A button

Example

Props

NameTypeDefault ValueRequiredDescription
labelstringYes
onPress() => voidYes
kind"transparent" | "solid" | "outline"Yes
hierarchy"primary" | "secondary" | "danger"Yes
isDisabledbooleanNo

Whether the button is disabled.

size"small" | "large" | "medium"No
icon(props: IconProps) => ElementNo
iconPosition"leading" | "trailing"No