mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
refactor(loading): add className prop and support additional props
This commit is contained in:
parent
7eb6eedf22
commit
449dfd56f2
@ -1,8 +1,16 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Skeleton } from "@/components/ui/skeleton";
|
||||
|
||||
export function Loading() {
|
||||
interface LoadingProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function Loading({
|
||||
className,
|
||||
...props
|
||||
}: LoadingProps) {
|
||||
return (
|
||||
<div className="h-full w-full p-2">
|
||||
<div className={cn("h-full w-full p-2", className)} {...props}>
|
||||
<Skeleton className="h-full w-full rounded-3xl" />
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user