"xsmall" | "small" | "large" | "xlarge" | "xxlarge" | "standard" ReactElement<unknown, string | JSXElementConstructor<any>> MouseEventHandler<HTMLButtonElement> 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). RefObject<HTMLElement | null> | (instance: HTMLElement | null) => void | (() => VoidOrUndefinedOnly)