svelte-inline-css
Easy to use inline style system like Vue.js inline style in Svelte(Use use:action)
Try it -> REPL
Installation
yarn add svelte-inline-css
Usage
<script lang="ts">
import style from 'svelte-inline-css';
export let height: `${number}px` = '0px';
</script>
<div use:style={{ height }} />
<div use:style={{ color: 'red' }}>red</div>On this page
Languages
JavaScript46.4%TypeScript34.4%Svelte13.3%HTML5.9%
MIT License
Created May 17, 2021
Updated February 13, 2024