// Adapted from Untitled UI React (MIT). See THIRD_PARTY_NOTICES.md. import type { ComponentProps } from "react"; export interface LoadingIndicatorProps extends ComponentProps<"div"> { label?: string; indicatorSize?: "sm" | "md" | "lg"; variant?: "ring" | "dots"; } export function LoadingIndicator({ label = "Loading", indicatorSize = "md", variant = "ring", className = "", ...props }: LoadingIndicatorProps) { return (
{variant === "dots" ? ( ) : ( )} {label && {label}}
); }