Skip to content

Search

Button

ComponentControls Source

A button. Defaults to type="button", so it never submits a form by accident.

Button(props: ButtonProps): Element

Props

variantoptionalButtonVariant

Defaults to primary. Icon buttons need an aria-label.

sizeoptionalButtonSize

Defaults to md. Matches the height of fields of the same size.

classoptionalstring

Also takes every <button> attribute.

design-system is a Ben Hodgson projectGitHub