JSPM

@filbert-js/macro

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q104471F
  • License MIT

babel plugin macro for filbert-js

Package Exports

  • @filbert-js/macro

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@filbert-js/macro) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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