<ui-button>
Styled button or link.
Forms · stable · since 2.0.0 · extends _UIElement
Examples
<ui-button>Save</ui-button>
<ui-button primary type="submit">Submit</ui-button>
<ui-button href="https://example.com">Link</ui-button>
Playground
Generated HTML
Event log
API
Attributes and properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
disabled | disabled | boolean | false | |
busy | data-ui-busy | boolean | false | |
type | type | string | "button" | Native button type (button, submit, reset). |
href | href | string | "" | When set, renders an anchor. |
variant | variant | string | "" | Visual variant. |
primary | primary | boolean | false | Primary emphasis. |
Methods
None.
Events
None.
Slots
(default)— Button content.