<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

    PropertyAttributeTypeDefaultDescription
    disableddisabledbooleanfalse
    busydata-ui-busybooleanfalse
    typetypestring"button"Native button type (button, submit, reset).
    hrefhrefstring""When set, renders an anchor.
    variantvariantstring""Visual variant.
    primaryprimarybooleanfalsePrimary emphasis.

    Methods

    None.

    Events

    None.

    Slots