@flameui/styles
v0.0.2
Published
Utilities for HTML Style
Downloads
5
Readme
@flameui/styles
Installation
npm i -g @flameui/styles
OR
yarn add @flameui/styles
Functions
function applyStyle<Element extends HTMLElement>(element: Element, styles: HTMLStyle, remove = true): Element
This function applies the style properties specified in the styles
object to element.style
.
If the remove
parameter is set to true
, style properties with undefined
or null
values will be removed from element.style
.