sin

1.0.0-rc.0 • Public • Published

Sin

// Style only component
const style = s`
  background tomato
`
// Style input component
s((shadow) => s`
  background tomato
  box-shadow ${ shadow }
`)
// Style and attr component
s((title, onchange) => s`
  background tomato
`({
  onclick: onchange
}, title))
// Statefull
s(() => (title, onchange) => s`
  background tomato
`({
  onclick: onchange
}, title))

Readme

Keywords

none

Package Sidebar

Install

npm i sin

Weekly Downloads

13

Version

1.0.0-rc.0

License

WTFPL

Unpacked Size

1.53 MB

Total Files

14

Last publish

Collaborators

  • porsager