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.
undefined
1 parent da560d5 commit 696553fCopy full SHA for 696553f
packages/react-styles/src/index.ts
@@ -2,8 +2,8 @@
2
*
3
* @param {any} args list of objects, string, or arrays to reduce
4
*/
5
-export function css(...args: any): string {
6
- // Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
+export function css(...args: any): string | undefined {
+ // Adapted from https://github.com/JedWatson/classnames/blob/main/index.js
7
const classes = [] as string[];
8
const hasOwn = {}.hasOwnProperty;
9
@@ -26,5 +26,5 @@ export function css(...args: any): string {
26
}
27
});
28
29
- return classes.join(' ');
+ return classes.join(' ') || undefined;
30
0 commit comments