mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
feat(Loading): add skeletonClassName prop to customize Skeleton style
This commit is contained in:
parent
6c53c5ee32
commit
91ce73d72b
@ -3,15 +3,17 @@ import { Skeleton } from "@/components/ui/skeleton";
|
||||
|
||||
interface LoadingProps {
|
||||
className?: string;
|
||||
skeletonClassName?: string;
|
||||
}
|
||||
|
||||
export function Loading({
|
||||
className,
|
||||
skeletonClassName,
|
||||
...props
|
||||
}: LoadingProps) {
|
||||
return (
|
||||
<div className={cn("h-full w-full p-2", className)} {...props}>
|
||||
<Skeleton className="h-full w-full rounded-3xl" />
|
||||
<Skeleton className={cn("h-full w-full rounded-3xl", skeletonClassName)} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user