childrenType: ReactNodeRequired
Idle label
onActionType: () => unknown
Work to run on click. A promise drives loading, then success or error
stateType: "idle" | "loading" | "success" | "error"
Controls the state from outside
iconType: ReactNode
Leading icon while idle
shortcutType: ReactNode[]
Keycaps after the idle label
loadingLabelType: ReactNodeDefault: Working
Label while the promise runs
successLabelType: ReactNodeDefault: Done
Label once it resolves
errorLabelType: ReactNodeDefault: Try again
Label once it rejects
resetAfterType: numberDefault: 2000
Milliseconds before success returns to idle
toneType: "blue" | "violet" | "green" | "red" | "amber" | "dark" | "light"Default: blue
Fill while idle and loading
successToneType: ToneDefault: green
Fill once the action succeeds
errorToneType: ToneDefault: red
Fill once the action fails
sizeType: "sm" | "md" | "lg"Default: md
Height and type size
staticType: booleanDefault: false
Drops the press scale