Button

A button wrapping slotted content.

Demos

Configurable

NameValue
Props
action
type
disabled
Slots
default-icon
default
Note: For icon properties, the relevant icon also needs to be imported from the @wikimedia/codex-icons package. See the usage documentation for more information.

Selected variations

Default

Progressive

Destructive, primary

Destructive, primary, disabled

Quiet

Default, with icon

Default, quiet, with icon

Default, icon only

Quiet, icon only

Usage

Props

Prop nameDescriptionTypeValuesDefault
actionThe kind of action that will be taken on click.ButtonAction'default', 'progressive', 'destructive''default'
typeButton type. See the Design Style Guide.ButtonType'normal', 'primary', 'quiet''normal'

Events

Event namePropertiesDescription
click

Slots

NameDescriptionBindings
defaultButton content

Last updated: