svelte-inline-css
Version:
Easy to use inline style system like [Vue.js inline style](https://v3.vuejs.org/guide/class-and-style.html#binding-inline-styles) in Svelte(Use [use:action](https://svelte.dev/docs#use_action))
9 lines (8 loc) • 362 B
TypeScript
import type { Properties } from 'csstype';
declare type properties = Properties<string | number>;
declare type Parameters = properties | properties[];
export declare const buildStyle: (parameters: Parameters) => any[][];
declare const style: (node: HTMLElement, parameters: Parameters) => {
update: (parameters: Parameters) => void;
};
export default style;