Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Create styled components #40

Open
RylanH opened this issue Apr 8, 2017 · 0 comments
Open

Create styled components #40

RylanH opened this issue Apr 8, 2017 · 0 comments

Comments

@RylanH
Copy link
Contributor

RylanH commented Apr 8, 2017

Similar to https://styled-components.com/ we could do

const Metadata = dapper.div({
  fontSize: 12,
  padding: 8,
});

<Metadata>Stuff</Metadata>

The benefit is a reduction in lines and code because you skip naming the style and then also writing the className prop.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant