MouseEventHandler<HTMLButtonElement> "reset" | "button" | "submit" KeyboardEventHandler<HTMLButtonElement> KeyboardEventHandler<HTMLButtonElement> false | true | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree" false | true | "false" | "true" "brandAccent" | "critical" | "formAccent" | "neutral" "transparent" | "solid" | "ghost" | "soft" ref
Allows getting a ref to the component instance.
Once the component unmounts, React will set `ref.current` to `null`
(or call the ref with `null` if you passed a callback ref). string | (instance: HTMLButtonElement | null) => void | RefObject<HTMLButtonElement>