npm.io
0.0.3 • Published 5 years ago

@filbert-js/macro

Licence
MIT
Version
0.0.3
Deps
3
Size
2 kB
Vulns
0
Weekly
0
Stars
175

@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;
`;

Keywords