Button

A button for on-page interactions, typically in forms.

It implements the <button> element.

It automatically has the disabled attribute until mounted, to prevent a default action from happening if the user clicks quickly after SSR.

Note: Links are semantically different and have separate, distinctly styled components.

Props

Use any valid <button> props.

Examples

Simple button.
import { Button } from 'device-agnostic-ui'

<Button>Label</Button>
Disabled button.
import { Button } from 'device-agnostic-ui'

<Button disabled>Label</Button>

Tags