@seahax/elemental 0.5.9 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -306,6 +306,8 @@ h(parent, items.map((item) => {
|
|
|
306
306
|
## Combine Conditional Classes
|
|
307
307
|
|
|
308
308
|
```ts
|
|
309
|
+
import { classes } from '@seahax/elemental';
|
|
310
|
+
|
|
309
311
|
// Using a dictionary of boolean values.
|
|
310
312
|
const classNames = classes({
|
|
311
313
|
'my-class-0': true,
|
|
@@ -322,5 +324,5 @@ const classNames = classes([
|
|
|
322
324
|
undefined,
|
|
323
325
|
null,
|
|
324
326
|
'my-class-4',
|
|
325
|
-
]); // = 'my-class-0 my-class-
|
|
327
|
+
]); // = 'my-class-0 my-class-4'
|
|
326
328
|
```
|
package/package.json
CHANGED