Skip to content

kentcdodds/glamorous.macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

glamorous.macro

Babel Macro

This is a babel-plugin-macros macro for babel-plugin-glamorous-displayname.

Please see those projects for more information.

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

npm install --save-dev glamorous.macro

You'll also need to install and configure babel-plugin-macros if you haven't already.

Usage

Once you've configured babel-plugin-macros you can import/require glamorous.macro. For example:

import glamorous from 'glamorous.macro'

const MyStyledInput = glamorous.input({
  /* your styles */
})

Note:

You basically can replace all usage of the default export of glamorous with glamorous.macro. However, glamorous.macro does not support named exports for built-in components.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published