Skip to content

Commit

Permalink
chore(ui): removed unused prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Gajendra-singh-r committed Jun 12, 2024
1 parent f9394c9 commit 1d795e4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/ui/src/spinner/Spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,14 @@ export const spinnerClasses = cva("animate-spin", {
},
});

export type Spinner = SVGAttributes<SVGSVGElement> & {
export type Spinner = Omit<SVGAttributes<SVGSVGElement>, "children"> & {
size?: SizeType;
inheritParent?: ValueOrFunction;
title?: string;
};

export const Spinner = forwardRef<SVGSVGElement, Spinner>(function Spinner(
{
inheritParent,
size = "md",
className,
title = "loading",
children,
width,
height,
...props
},
{ inheritParent, size = "md", className, title = "loading", ...props },
forwardedRef,
) {
const _inheritParent = getValue(inheritParent);
Expand Down

0 comments on commit 1d795e4

Please sign in to comment.