@zebra-fed/zeta-web
    Preparing search index...

    Class ZetaButton

    Buttons facilitate user interaction.

    Hierarchy (View Summary)

    Index

    Other

    _buttonType: "text" | "icon" = "text"
    disabled: boolean
    flavor: ButtonFlavor = "primary"

    The flavor of the component determines the visual style of the component.

    "primary"
    

    Supported values for flavor:

    • "primary" - Blue background.
    • "positive" - Green background.
    • "negative" - Red background.
    • "outline" - Primary outline only.
    • "outline-subtle" - Grey outline only.
    • "text" - Primary text only.
    internals: ElementInternals
    leadingIcon: null | ZetaIconName = null

    Leading icon of button. Full list of icons can be found at Zeta Icons.

    name?: string

    Name for the button, used if the button is in a form.

    shape: "rounded" | "sharp" | "full"
    size: "small" | "medium" | "large"
    trailingIcon: null | ZetaIconName = null

    Trailing icon of button. Full list of icons can be found at Zeta Icons.

    type?: "reset" | "submit" | "button"

    The type of the button when used in a form

    value?: string

    The value of the name property When submitted as part of a form

    formAssociated: boolean = true
    shadowRootOptions: ShadowRootInit = ...

    rendering

    • Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart - typically a TemplateResult. Setting properties inside this method will not trigger the element to update.

      Returns TemplateResult<1>