epic-tag
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

epic-tag

Style Logo

Advanced styled components for React.

  • 💅 Styled components
  • 🏠 Native updates without rerender
  • 🤌 State (hover, focus...) specific styles
  • 💨 String based property shortcuts

Usage

Use the tag method to apply styles to any tag resulting in reusable and extendable styled components.

import { render } from 'epic-jsx'
import { tag } from 'epic-tag'

const MyButton = tag('button', 'color-blue', { hover: 'color-red', focus: 'color-green' })

render(<MyButton>Hover Me!</MyButton>)

Package Sidebar

Install

npm i epic-tag

Weekly Downloads

3

Version

0.4.1

License

CC-BY-NC-4.0

Unpacked Size

11.6 kB

Total Files

8

Last publish

Collaborators

  • tobua