Skip to main content
Glama
avatar.tsx1.09 kB
"use client"; import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar"; import { cn } from "@/lib/utils"; function Avatar({ className, ...props }: AvatarPrimitive.Root.Props) { return ( <AvatarPrimitive.Root className={cn( "inline-flex size-8 shrink-0 select-none items-center justify-center overflow-hidden rounded-full bg-background align-middle font-medium text-xs", className, )} data-slot="avatar" {...props} /> ); } function AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props) { return ( <AvatarPrimitive.Image className={cn("size-full object-cover", className)} data-slot="avatar-image" {...props} /> ); } function AvatarFallback({ className, ...props }: AvatarPrimitive.Fallback.Props) { return ( <AvatarPrimitive.Fallback className={cn( "flex size-full items-center justify-center rounded-full bg-muted", className, )} data-slot="avatar-fallback" {...props} /> ); } export { Avatar, AvatarImage, AvatarFallback };

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