1.0.0 • Published 2 years ago

@xiul/xdv-set-custom-properties-from-attributes-mixin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

\<@xiul/xdv-set-custom-properties-from-attributes-mixin>

Mixin to set the custom properties from html attributes.

Installation

npm i @xiul/xdv-set-custom-properties-from-attributes-mixin

Usage

  <xdv-checkbox
    data-switch-bar-bg='var(--client-tertiary-9)'
  >
  </xdv-checkbox>
xdvSetCustomProperties ('switch') 

The rule --switch-bar-bg is created or modified

  --switch-bar-bg: var(--client-tertiary-9)