"small" | "large" | "standard" "reset" | "button" | "submit" MouseEventHandler<HTMLButtonElement> MouseEventHandler<HTMLButtonElement> KeyboardEventHandler<HTMLButtonElement> KeyboardEventHandler<HTMLButtonElement> false | true | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree" false | true | "false" | "true" 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>