classnamed
v1.0.1
Published
Create components with classnames
Downloads
1
Readme
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>)
}