diff --git a/packages/components/elements/skeleton/Skeleton.tsx b/packages/components/elements/skeleton/Skeleton.tsx index ed77a4c6..2683d260 100644 --- a/packages/components/elements/skeleton/Skeleton.tsx +++ b/packages/components/elements/skeleton/Skeleton.tsx @@ -7,6 +7,7 @@ interface SkeletonProps extends React.HTMLAttributes { animation?: "none" | "pulse" | "shimmer"; content?: any; fade?: "top" | "bottom" | "left" | "right"; + as?: "div" | "input"; } function Skeleton({ @@ -14,6 +15,7 @@ function Skeleton({ content, animation = "pulse", fade, + as = "div", ...props }: SkeletonProps) { const animationStyles = { @@ -29,6 +31,11 @@ function Skeleton({ left: "hawa-mask-fade-left ", }; + const styledAs = { + div: "", + input: "!h-[38px] !w-full", + }; + return (