We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
classNames
1 parent ea294f2 commit d065a67Copy full SHA for d065a67
src/jsHelpers/classNames/README.md
@@ -16,13 +16,20 @@ import { classNames } from '@react-ui-org/react-ui';
16
And use it:
17
18
```docoff-react-preview
19
+<docoff-placeholder bordered>Grid item</docoff-placeholder>
20
<div
21
className={classNames(
22
'd-inline-block',
- Date.now() > 1609455600 && 'text-warning',
23
- Date.now() > 1622498400 ? 'text-secondary' : null,
+ true && 'mt-5',
24
+ 1 && 'ml-5',
25
+ '',
26
+ false && 'mb-5',
27
+ null && 'mb-5',
28
+ undefined && 'mb-5',
29
+ 0 && 'mb-5',
30
)}
31
>
32
{(new Date()).toLocaleDateString()}
33
</div>
34
35
```
0 commit comments