Button (button
)
A button draws attention to important actions with a large selectable surface.
🔗 External documentation.
ID | Label | Description | Schema |
---|---|---|---|
label | Label | The button label. | |
disabled | Disabled? | Is the button disabled? |
|
url | URL | The button URL. Optional. |
|
id: button
label: Button
description: 'A button draws attention to important actions with a large selectable surface.'
group: Buttons
homepage: 'https://designsystem.digital.gov/components/button/'
variants:
default:
id: default
label: Default
secondary:
id: secondary
label: Secondary
description: 'Button uses secondary color.'
accent_cool:
id: accent_cool
label: Accent-cool
description: 'Button uses accent-cool color.'
accent_warm:
id: accent_warm
label: Accent-warm
description: 'Button uses accent-warm color.'
base:
id: base
label: Base
description: 'Button uses base color.'
outline:
id: outline
label: Outline
description: 'Transparent button with a color stroke.'
inverse:
id: inverse
label: 'Outline Inverse'
description: 'Light color button for dark backgrounds.'
unstyled:
id: unstyled
label: Unstyled
description: 'A button that looks like a link.'
default__big:
id: default__big
label: 'Primary (Big)'
description: 'Primary. A bigger button.'
secondary__big:
id: secondary__big
label: 'Secondary (Big)'
description: 'Button uses secondary color. A bigger button.'
accent_cool__big:
id: accent_cool__big
label: 'Accent-cool (Big)'
description: 'Button uses accent-cool color. A bigger button.'
accent_warm__big:
id: accent_warm__big
label: 'Accent-warm (Big)'
description: 'Button uses accent-warm color. A bigger button.'
base__big:
id: base__big
label: 'Base (Big)'
description: 'Button uses base color. A bigger button.'
slots:
label:
id: label
label: Label
description: 'The button label.'
props:
disabled:
id: disabled
label: 'Disabled?'
description: 'Is the button disabled?'
schema:
type: boolean
url:
id: url
label: URL
description: 'The button URL. Optional.'
schema:
type: string
format: uri-reference
examples:
preview:
id: preview
label: Preview
renderable:
'@component': button
label: Submit
url: 'https://example.com'
Default
(
default
)
Secondary
(
secondary
)
Button uses secondary color.
Accent-cool
(
accent_cool
)
Button uses accent-cool color.
Accent-warm
(
accent_warm
)
Button uses accent-warm color.
Base
(
base
)
Button uses base color.
Outline
(
outline
)
Transparent button with a color stroke.
Outline Inverse
(
inverse
)
Light color button for dark backgrounds.
Unstyled
(
unstyled
)
A button that looks like a link.
Primary (Big)
(
default__big
)
Primary. A bigger button.
Secondary (Big)
(
secondary__big
)
Button uses secondary color. A bigger button.
Accent-cool (Big)
(
accent_cool__big
)
Button uses accent-cool color. A bigger button.
Accent-warm (Big)
(
accent_warm__big
)
Button uses accent-warm color. A bigger button.
Base (Big)
(
base__big
)
Button uses base color. A bigger button.