mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-15 15:35:25 +02:00
✨ Updated sidebar layout (#1661)
This commit is contained in:
parent
8c0814b92b
commit
72ca1d4c38
104 changed files with 3268 additions and 1331 deletions
|
@ -30,12 +30,18 @@ export interface IconProps extends VariantProps<typeof iconVariants> {
|
|||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
export function Icon({ children, size, variant }: IconProps) {
|
||||
export function Icon({
|
||||
children,
|
||||
className,
|
||||
size,
|
||||
variant,
|
||||
}: { className?: string } & IconProps) {
|
||||
return (
|
||||
<Slot
|
||||
className={cn(
|
||||
iconVariants({ size, variant }),
|
||||
"group-[.bg-primary]:text-primary-50 group-[.bg-destructive]:text-destructive-foreground group shrink-0",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue