Skip to content

Commit

Permalink
Adding sizes to Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
édouard wautier authored and édouard wautier committed Nov 22, 2023
1 parent f32281d commit 673daaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sparkle/src/components/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { classNames } from "@sparkle/lib/utils";

export interface IconProps {
visual?: ComponentType<{ className?: string }>;
size?: "xs" | "sm" | "md" | "lg";
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
className?: string;
}

Expand All @@ -13,6 +13,8 @@ const IconSizes = {
sm: "s-h-5 s-w-5",
md: "s-h-6 s-w-6",
lg: "s-h-8 s-w-8",
xl: "s-h-12 s-w-12",
"2xl": "s-h-20 s-w-20",
};

export function Icon({
Expand Down

0 comments on commit 673daaf

Please sign in to comment.