@mocanvas/mocanvas · function

TldrawUiButton

declare function TldrawUiButton({ type, isChecked, isActive, disabled, title, className, style, id, tabIndex, role, ref, onClick, onPointerDown, onPointerUp, onKeyDown, onFocus, onBlur, children, ...rest }: TLUiButtonProps): react.JSX.Element

A button.

type="submit" is never what chrome wants — a button inside a form that defaults to submitting is a bug waiting for someone to press Enter — so this always renders type="button".

mocanvas 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.