keer-ui · catalog

Components

56 components and 194 states. The code lives in the project (the folder from the target: field of the page design/keer-ui.md); the look comes from the keer-style tokens.

Primitives 37

The shadcn base on Base UI: button, input, card, table, menu, dialog. They know nothing about the product.

ComponentFileStatesNot applicable
AlertDialog
Confirmation dialog for an irreversible action.
AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger
primitives/alert-dialog.tsx
defaultopen
Alert
Message strip: info, warning, error.
Alert, AlertAction, AlertDescription, AlertTitle
primitives/alert.tsx
defaultwarningdestructivedestructive-softwarning-soft
Attachment
Attached file strip: name, size, remove.
Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger
primitives/attachment.tsx
defaultuploadingprocessingerror
Avatar
Avatar: picture or initials.
Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage
primitives/avatar.tsx
defaultsmalllarge
Badge
Badge: shadcn variants and soft state tones.
primitives/badge.tsx
defaultsecondarydestructiveoutlineghostlinksoft-neutralsoft-successsoft-warningsoft-dangersoft-info
Breadcrumb
Breadcrumb trail.
Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator
primitives/breadcrumb.tsx
default
Bubble
A speech bubble in a conversation.
Bubble, BubbleContent, BubbleGroup, BubbleReactions
primitives/bubble.tsx
defaultsecondarymutedtintedoutlineend
Button
Button: primary graphite, outline, secondary, ghost, destructive, link.
primitives/button.tsx
defaultoutlinesecondaryghostdestructivelinksmalldisabledunderlineoptionoption-chosen
Card
Card: header, content, footer.
Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle
primitives/card.tsx
defaultraisedflush
Checkbox
Checkbox.
primitives/checkbox.tsx
defaultcheckeddisabled
Collapsible
Collapsible block.
Collapsible, CollapsibleContent, CollapsibleTrigger
primitives/collapsible.tsx
defaultopen
Dialog
Dialog over the page.
Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger
primitives/dialog.tsx
defaultopen
DropdownMenu
Dropdown menu.
DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger
primitives/dropdown-menu.tsx
defaultopen
Empty
An empty place instead of data: one calm line of muted text in the center, with no big pictures and icons.
Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle
primitives/empty.tsx
defaultwith-hint
Field
Form field: label, input, hint, error.
Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSet, FieldTitle, Form
primitives/field.tsx
defaultinvaliddisabledmutedhorizontal
InputGroup
Input with buttons and icons inside.
InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea
primitives/input-group.tsx
defaultsuffixcard
Input
Single-line input.
primitives/input.tsx
defaultfilledinvaliddisabled
Kbd
The key caption: “⌘↵”, “Esc”. It only shows the combination; the key press itself is handled by whoever placed it.
primitives/kbd.tsx
defaultinverse
Label
Field label.
primitives/label.tsx
default
Link
A link: a jump to another screen or an external address. Above the primitives we do not write `<a>`, we take this.
primitives/link.tsx
defaultexternalstepcurrent-step
Marker
Marker in the margin of a text.
Marker, MarkerContent, MarkerIcon
primitives/marker.tsx
defaultseparatorborder
Message
Conversation message: author, text, actions.
Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader
primitives/message.tsx
defaultend
Progress
Progress bar.
Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue
primitives/progress.tsx
defaultcompleteindeterminatelarge
RadioGroup
Choice of one of several.
RadioGroup, RadioGroupCard, RadioGroupItem
primitives/radio-group.tsx
defaultselecteddisabledcards
ScrollArea
Area with a thin scroll bar.
ScrollArea, ScrollBar
primitives/scroll-area.tsx
default
Select
Select list.
Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue
primitives/select.tsx
defaultselected
Separator
Separator.
primitives/separator.tsx
defaultvertical
Sheet
Side sheet.
Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger
primitives/sheet.tsx
default
Sidebar
Application side panel that collapses.
Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger
primitives/sidebar.tsx
default
Skeleton
Loading skeleton of the same shape as the data.
primitives/skeleton.tsx
defaultline
Sonner
Pop-up notifications (sonner).
Toaster, Sonner
primitives/sonner.tsx
default
Switch
An “on / off” switch with a thumb: a regular task, a settings item. On is a graphite track, off is light gray, unavailable is muted, saving is muted and cannot be pressed. The name for screen readers is set by `aria-label`: the switch has no visible caption next to it.
primitives/switch.tsx
defaultoffdisabledsavingsmall
Table
A table in a container with horizontal scrolling. `layout="fixed"`: the column width is set on the headings (`w-*`), not by the cell text; the table is not narrower than the container and does not squeeze the columns: what does not fit scrolls inside the container, the page does not grow. The container is a size query container (`@container`): its visible width is the base for the content width of a `pinned` cell.
Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow
primitives/table.tsx
defaultwrapcell-variantsfixedexpandable-rowpinned-detail
Tabs
Tabs.
Tabs, TabsContent, TabsList, TabsTrigger
primitives/tabs.tsx
defaultlinesecondnav
Textarea
Multi-line input.
primitives/textarea.tsx
defaultfilleddisabled
ToggleGroup
A choice of one of several short options with buttons in a row: a function under the request line, a period, “all / mine”.
primitives/toggle-group.tsx
defaultsmallnonesegment
Tooltip
Tooltip on hover.
Tooltip, TooltipContent, TooltipProvider, TooltipTrigger
primitives/tooltip.tsx
defaultopen

Composites 19

Built from primitives: page header, layout, state view, lists, badges. They know nothing about the product.

ComponentFileStatesNot applicable
AnswerCard
The “Question about the task” card: the question in bold, the answer below in muted text. The question does not change the course of the task.
composites/answer-card.tsx
defaultlong-answer
BeforeAfterPair
“Was / will be” in two columns. The left one is muted, the right one lies on a light backing; in a narrow window the columns stack.
composites/before-after-pair.tsx
defaulthighlightednew-blockcustom-labels
Checklist
A list of items with a state dot on the left, a title and a note with the source. The state is also named in words for screen readers, not only by color.
composites/checklist.tsx
defaultrecognisedfailedsingle
ChoiceList
A question with options: optional input fields, below them the options as full-width rows with a circle on the left, under them the own-answer field with a button.
composites/choice-list.tsx
defaultwith-free-answerwith-fieldslong-optionsdisabled
ExampleList
Request examples as a list under the request line: one per line, so the eyes need not travel across the whole screen.
composites/example-list.tsx
defaultdimmed
FilePickButton
A file-choose button: opens the system chooser and passes on the chosen file. A composite component: a button and a hidden file field, with no product concepts.
composites/file-pick-button.tsx
defaultoutlinedisabled
KeyValueList
“Name: value” pairs in a column: task parameters, card rows. A long value wraps, the source stands under it.
composites/key-value-list.tsx
default
ListCard
A white card with a list: a caption on top, rows without divider lines. The base of dashboard blocks.
composites/list-card.tsx
default
OutcomeBanner
An outcome of a special kind, neither “done” nor “error”: a part is done, or the system stopped the task. Each tone has its own color, text and buttons.
composites/outcome-banner.tsx
defaultpartial-severalsystemsystem-queuesystem-with-linksystem-denied
PageHeader
The page header: the title (h1), a note, actions on the right and tabs under them. Placed first inside `PageLayout`. In a narrow window the actions move under the title.
composites/page-header.tsx
defaultwith-actionswith-tabstitle-only
PageLayout
The page container: the margins from the window edge `p-6 md:p-8` and the gap between sections `gap-6`. It is the root of every screen; inside it are `PageHeader` and the sections. Nothing sticks to the window edge.
composites/page-layout.tsx
defaultnarrowwidetask
SectionHeader
The title of a page section outside a card (inside a card it is `CardTitle`). The h2 title, a note under it, actions on the right.
composites/section-header.tsx
defaultwith-actions
SettingsPanel
A settings section card: a title, a one- or two-line note and the content. One per screen, to the right of the list of sections. The content is a list of rows (`StatusList`), “name: value” fields (`ConfigForm`) or a table.
composites/settings-panel.tsx
defaultaside
SourcedValue
A value with evidence: it is always visible where it comes from and when it was received. If there is no value, it shows “no data” and the reason, with no guessing.
composites/sourced-value.tsx
defaultinlineclampedmissing
SplitLayout
Two columns of the task screen: the course and the result are read on the left, the details are kept on the right. Three fifths and two fifths of the width; below 1024 px a single column.
composites/split-layout.tsx
default
StateView
A placeholder instead of data: loading, empty, error, no rights, refused, not connected. Loading is gray bars of different widths; empty is one calm line in the center; an error is a phrase and “Retry”; a refusal is a red strip with the rule. A composite component: only library primitives, with no product concepts and no requests.
composites/state-view.tsx
defaultloadingemptyerrornoaccessrefusednot-connectedin-cardin-card-with-actionloading-in-card
StatusBadge
A short state badge: “Clarify”, “yes”, “in the CRM”. With no product concepts.
composites/status-badge.tsx
defaultinfosuccesswarningdangerwaits-for-yououtline
loadingemptyerror
StatusList
A list of rows of a settings section: the title in bold, a state badge on the right, below a small line with the detail and a link action. Rows span the whole card width, there are no lines between them; the white space separates them.
composites/status-list.tsx
defaultplain
StepList
The course of a task as a list of stages. The stages are known from the start: it is visible which one is passed, which is running, which is ahead and who does each.
composites/step-list.tsx
defaultwaitingfailedagent-budgetbackgroundcountingwith-durations

The catalog is built from the *.states.tsx files of the library. "Not applicable" lists the states a component does not have, with the reason in its states file.