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.
useClassName
1 parent c412562 commit f923995Copy full SHA for f923995
site/src/hooks/useClassName.ts
@@ -5,9 +5,9 @@ import { type DependencyList, useMemo } from "react";
5
export type ClassName = (cssFn: typeof css, theme: Theme) => string;
6
7
/**
8
- * An escape hatch for when you really need to manually pass around a
9
- * `className`. Prefer using the `css` prop whenever possible. If you
10
- * can't use that, then this might be helpful for you.
+ * @deprecated This hook was used as an escape hatch to generate class names
+ * using emotion when no other styling method would work. There is no valid new
+ * usage of this hook. Use Tailwind classes instead.
11
*/
12
export function useClassName(styles: ClassName, deps: DependencyList): string {
13
const theme = useTheme();
0 commit comments