The `ds-button` component provides a styled and functional button element.
It supports various button types and variants while maintaining accessibility
and proper event handling.
Properties:
Name | Type | Description |
---|---|---|
type |
string | Gets or sets the type of the button. |
disabled |
boolean | Gets or sets the disabled state of the button. |
name |
string | Gets or sets the name of the button. |
value |
string | Gets or sets the value of the button. |
variant |
string | Gets or sets the variant of the button. |
- Source:
Examples
<!-- Basic button -->
<ds-button>Click me</ds-button>
<!-- Submit button with variant -->
<ds-button type="submit" variant="primary">Submit Form</ds-button>
<!-- Disabled button -->
<ds-button disabled variant="secondary">Disabled Button</ds-button>
Extends
- HTMLElement