svelte-inline-css
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i svelte-inline-css

Weekly Downloads

3

Version

1.2.1

License

MIT

Unpacked Size

4.34 kB

Total Files

7

Last publish

Collaborators

  • mouse_484