Switches toggle the state of a single item ON or OFF. To use with icon variant, provide both activeIcon and inactiveIcon

--switch-track-color Color of the switch track

--switch-track-active-color Color of the switch track when switch is ON

--switch-track-disabled-color Color of the switch track when switch is disabled

--switch-icon-color Color of the activeIcon & inactiveIcon

--switch-icon-disabled-color Color of the activeIcon & inactiveIcon when disabled

--switch-thumb-color Color of the switch thumb

--switch-thumb-disabled-color Color of the switch thumb when disabled

--switch-height Height of the switch

--switch-width Width of the switch

--switch-thumb-size Height & Width of the switch thumb

--switch-icon-size Height & Width of the activeIcon & inactiveIcon

https://www.figma.com/file/JesXQFLaPJLc1BdBM4sisI/🦓-ZDS---Components?node-id=1153-26923

https://zeta-ds.web.app/web/storybook/?path=/docs/switch--docs

Hierarchy

  • FormFieldInterface<this> & LitElement<this> & InteractiveInterface<this> & ContourableInterface<this>
    • ZetaSwitch

Other

activeIcon?: ZetaIconName

Icon name to display when switch is ON.

checked?: boolean
disabled: boolean
inactiveIcon?: ZetaIconName

Icon name to display when switch is OFF.

indeterminate: boolean
input: HTMLInputElement
internals: ElementInternals
name: string
required: boolean
rounded: boolean
type: InputType = ...
value: string
shadowRootOptions: ShadowRootInit = ...
styles: CSSResultGroup[] = ...
  • Parameters

    • event: Event

    Returns void

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>