0.0.12 • Published 1 year 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
1 year ago
0.0.11
1 year ago
0.0.12
1 year ago
0.0.12-next.6e9afc73
1 year ago
0.0.10-next.b4bdd054
1 year ago
0.0.10
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5-next.1fd9f076
2 years ago
0.0.5-nextdacccbb1
2 years ago
0.0.5-next.undefined
2 years ago
0.0.5
2 years ago