Button
Component | Source Code
extends ComponentPropsWithRef<“button”>
Props Inheritance Hierarchy: ComponentPropsWithRef<“button”>
A simple wrapper for the base button component.
The type prop is set to “button” by default, but can be overridden. This is to avoid having buttons
work unexpectedly as submit buttons when you use them in a form.