Skip to content

default

default(__namedParameters): Element

Defined in: src/components/Button/Button.tsx:42

A generic, reusable button component that accepts all standard HTML button attributes.

The accessible name is determined by the children prop, but can be overridden for screen readers by the aria-label attribute.

Parameter Type
__namedParameters ReadonlyButtonProps

Element

<Button
aria-label="Submit Form"
modifiers="Button_primary"
onClick={handleClick}
type="submit"
>
Submit
</Button>