Button
A button. Defaults to type="button", so it never submits a form by accident.
Button(props: ButtonProps): ElementProps
- variantoptional
ButtonVariant Defaults to
primary. Icon buttons need anaria-label.- sizeoptional
ButtonSize Defaults to
md. Matches the height of fields of the same size.- classoptional
string
Also takes every <button> attribute.
design-system is a Ben Hodgson projectGitHub