1.0.1 • Published 3 years ago

classnamed v1.0.1

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

classnamed

A slim and simple utility to make components with just classnames.

Installation

yarn add classnamed

or

npm install --save classnamed

Usage

import classnamed from 'classnamed'

const Box = classnamed.div`p-5 bg-white rounded shadow mb-2`
const DarkerBox = classnamed(Box)`bg-gray-800 text-white`

export function MyApp(){
  return (<div>
      <Box />
      <DarkerBox />
    </div>)
}