0.0.3 • Published 3 years ago

@filbert-js/macro v0.0.3

Weekly downloads
966
License
MIT
Repository
github
Last release
3 years ago

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