{rating ? rating / 10 : "??"} / 10
++ {rating ? rating / 10 : "??"} / 10 +
- outline ? theme.contrast : theme.alternate.contrast,
- },
- ],
- textProps,
+ className={cn(
+ outline &&
+ cn(
+ "dark:text-slate-300",
+ "group-hover:text-slate-200 group-focus:text-slate-200",
+ ),
+ !outline &&
+ cn(
+ "text-slate-200 dark:text-slate-300",
+ "group-hover:text-slate-600 group-focus:text-slate-600",
+ "dark:group-focus:text-slate-300 dark:group-hover:text-slate-300",
+ ),
+ size === "small" && "text-sm",
)}
>
{capitalize(label)}
@@ -86,42 +62,28 @@ export const Chip = ({
};
Chip.Loader = ({
- color,
size = "medium",
outline = false,
+ className,
...props
}: {
- color?: string;
size?: "small" | "medium" | "large";
outline?: boolean;
+ className?: string;
}) => {
- const { css } = useYoshiki();
- const sizeMult = size === "medium" ? 1 : size === "small" ? 0.5 : 1.5;
-
return (