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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters |
ReadonlyButtonProps |
Returns
Section titled “Returns”Element
Example
Section titled “Example”<Button aria-label="Submit Form" modifiers="Button_primary" onClick={handleClick} type="submit"> Submit</Button>