glamorous.macro
v1.0.2
Published
add a displayName property to glamorous components
Readme
glamorous.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.macroYou'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.
