foliage-ui / foliage

🍃 Style your components with performance
https://foliage.sova.dev
28 stars 2 forks source link

Add support for default props #1

Open sergeysova opened 4 years ago

sergeysova commented 4 years ago
const Button = styled('button', { data: { enabled: $enabled, theme: $theme } })`
  color: red;
`

What about redefining?

Button({
  data: { enabled: $another }
})

What props should win?