Skip to main content
Glama
progress.svelte646 B
<script lang="ts"> import { Progress as ProgressPrimitive, type WithoutChildrenOrChild } from "bits-ui"; import { cn } from "$lib/utils.js"; let { ref = $bindable(null), class: className, max = 100, value, ...restProps }: WithoutChildrenOrChild<ProgressPrimitive.RootProps> = $props(); </script> <ProgressPrimitive.Root bind:ref class={cn("bg-secondary relative h-4 w-full overflow-hidden rounded-full", className)} {value} {max} {...restProps} > <div class="bg-primary h-full w-full flex-1 transition-all" style={`transform: translateX(-${100 - (100 * (value ?? 0)) / (max ?? 1)}%)`} ></div> </ProgressPrimitive.Root>

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/jhawkins11/task-manager-mcp'

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