Skip to main content

Primitives

Base, shadcn/ui-based components that every pattern in this package (and your own app-specific components) is built on top of. Each is a thin, typed wrapper — same API shape you'd get generating the component via the shadcn/ui CLI, just pre-built and versioned as a dependency instead of copy-pasted into your repo.

ComponentNotes
ButtonVariants: default, outline, secondary, link, destructive, ghost, plus the theme-glow ai / ai-subtle / ai-ghost accent used by AiButton. Sizes: default, sm, lg, xs, icon, icon-sm, icon-lg, icon-xs. Icons render at a consistent size-4 automatically when passed as a bare child.
Input / Textarea / LabelStandard form fields, styled to match border-input/ring focus tokens.
CardCard, CardHeader, CardTitle, CardDescription, CardContent, CardFooter.
BadgeVariants: default, secondary, destructive, outline, warning.
DialogDialog, DialogContent (with an opt-out showCloseButton and a built-in max-h-[85vh] overflow-y-auto safety net for tall content), DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogTrigger.
PopoverPopover, PopoverTrigger, PopoverContent.
SelectSelect, SelectTrigger, SelectValue, SelectContent, SelectItem.
SkeletonLoading placeholder block.
DropdownMenuFull menu feature set: DropdownMenuCheckboxItem, DropdownMenuRadioItem/DropdownMenuRadioGroup, submenus, DropdownMenuShortcut.
SheetSlide-in panel (SheetTrigger, SheetContent, SheetHeader, SheetTitle, SheetDescription). Its slide transition uses a plain transition-transform toggle rather than tailwindcss-animate, so it works without that plugin installed.
TooltipTooltip, TooltipTrigger, TooltipContent, TooltipProvider.
HoverCardHoverCard, HoverCardTrigger, HoverCardContent — rich preview on hover/focus (see Patterns).
CollapsibleCollapsible, CollapsibleTrigger, CollapsibleContent — bare show/hide; CollapsibleSection is the styled pattern.

See the interactive demo for every one of these rendered together, or the exported TypeScript types (import type { ... } from "@bmsuisse/ui") for exact prop signatures.