0.0.12 • Published 2 months ago
@teensy/cx v0.0.12
Features
- 1kb gzip
Installation
pnpm add @teensy/cx -D
Usage
import cx from '@teensy/cx'
type CompProps = {
children: React.ReactNode;
}
const Component = ({ children }): CompProps => {
return(<div className={cx('first-class', hasProp ? 'conditional-class' : 'falsy class', { 'aria-invalid': ariaInvalid })}>)
}
Assuming hasProp
and ariaInvalid
evaluate to truthy
values, the result would be first-class conditional-class aria-invalid
.
License
MIT License
Copyright (c) 2022 Tom
0.0.11-next.3db584ce
2 months ago
0.0.11
2 months ago
0.0.12
2 months ago
0.0.12-next.6e9afc73
2 months ago
0.0.10-next.b4bdd054
2 months ago
0.0.10
11 months ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5-next.1fd9f076
1 year ago
0.0.5-nextdacccbb1
1 year ago
0.0.5-next.undefined
1 year ago
0.0.5
1 year ago