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

1.0.0 • Public • Published

<@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)

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.71 kB

Total Files

4

Last publish

Collaborators

  • xiul