Skip to main content
Glama
progress.tsx1.71 kB
"use client"; import { Progress as ProgressPrimitive } from "@base-ui/react/progress"; import { cn } from "@/lib/utils"; function Progress({ className, children, ...props }: ProgressPrimitive.Root.Props) { return ( <ProgressPrimitive.Root className={cn("flex w-full flex-col gap-2", className)} data-slot="progress" {...props} > {children ? ( children ) : ( <ProgressTrack> <ProgressIndicator /> </ProgressTrack> )} </ProgressPrimitive.Root> ); } function ProgressLabel({ className, ...props }: ProgressPrimitive.Label.Props) { return ( <ProgressPrimitive.Label className={cn("font-medium text-sm", className)} data-slot="progress-label" {...props} /> ); } function ProgressTrack({ className, ...props }: ProgressPrimitive.Track.Props) { return ( <ProgressPrimitive.Track className={cn( "block h-1.5 w-full overflow-hidden rounded-full bg-input", className, )} data-slot="progress-track" {...props} /> ); } function ProgressIndicator({ className, ...props }: ProgressPrimitive.Indicator.Props) { return ( <ProgressPrimitive.Indicator className={cn("bg-primary transition-all duration-500", className)} data-slot="progress-indicator" {...props} /> ); } function ProgressValue({ className, ...props }: ProgressPrimitive.Value.Props) { return ( <ProgressPrimitive.Value className={cn("text-sm tabular-nums", className)} data-slot="progress-value" {...props} /> ); } export { Progress, ProgressLabel, ProgressTrack, ProgressIndicator, ProgressValue, };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bytebase/dbhub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server