@filbert-js/macro
v0.0.3
Published
babel plugin macro for filbert-js
Downloads
1,990
Maintainers
Readme
@filbert-js/macro
A Babel macro for filbert, converts styled.div
syntax to styled('div')
calls.
Install
npm install --save @filbert-js/macro
How to use
import React from 'react';
import { styled } from '@filbert-js/macro';
const Button = styled.button`
margin: 0;
padding: 1rem;
font-size: 1rem;
background-color: tomato;
`;