@minko-fe/style-object-to-string
v1.0.0
Published
✨ convert style object to string. eg. { fontSize: 12 } => font-size: 12px
Downloads
170
Maintainers
Readme
style-object-to-string
convert style object to string
install
pnpm
pnpm add @minko-fe/style-object-to-string
npm
npm add @minko-fe/style-object-to-string
usage
import { styleObjectToString } from '@minko-fe/style-object-to-string'
styleObjectToString({
fontSize: 14,
backgroundColor: '#fff',
}) // 'font-size:14px;background-color:#fff'
❤️ react
Source code from react