@mocanvas/mocanvas · interface
interface TLUiButtonPropsThis one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Properties · 18
children?: ReactNodeclassName?: stringdisabled?: booleanid?: stringisActive?: booleanMarks the active item in a set. Rendered as aria-current.
isChecked?: booleanRendered as aria-pressed: a two-state button, not a link.
onBlur?(event: React.FocusEvent<HTMLButtonElement>): voidonClick?(event: MouseEvent<HTMLButtonElement>): voidonFocus?(event: React.FocusEvent<HTMLButtonElement>): voidonKeyDown?(event: React.KeyboardEvent<HTMLButtonElement>): voidonPointerDown?(event: PointerEvent<HTMLButtonElement>): voidonPointerUp?(event: PointerEvent<HTMLButtonElement>): voidref?: Ref<HTMLButtonElement>role?: stringstyle?: CSSPropertiestabIndex?: numbertitle?: stringAccessible name. Required when the button's content is an icon alone.
type?: TLUiButtonTypemocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.