# Components

80 components, all built on the same tokens. Try each one here, or open it to see it in light and dark, its props, and how to install it.

## Actions

- [Button](https://www.werewolf-ui.dev/components/button.md): Triggers an action.
- [ButtonGroup](https://www.werewolf-ui.dev/components/button-group.md): A named row or column of related Buttons, joined with shared edges or spaced apart, with one size and variant for the group and an optional separator.
- [ContextMenu](https://www.werewolf-ui.dev/components/context-menu.md): Opens a menu at a pointer on right click, a keyboard context key or a touch long press, with the same items and submenus as DropdownMenu.
- [DropdownMenu](https://www.werewolf-ui.dev/components/dropdown-menu.md): A menu of actions behind a button: DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem (destructive, inset, leadingIcon, shortcut, asChild), DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, DropdownMenuPortal.
- [Toggle](https://www.werewolf-ui.dev/components/toggle.md): A button with a persistent on or off state.
- [ToggleGroup](https://www.werewolf-ui.dev/components/toggle-group.md): A keyboard-navigable group of single or multiple toggle choices.
- [Toolbar](https://www.werewolf-ui.dev/components/toolbar.md): A row or column of Buttons, Toggles and ToggleGroups that takes one Tab stop; the arrow keys, Home and End move between its controls.

## Forms

- [Calendar](https://www.werewolf-ui.dev/components/calendar.md): A month grid for picking one date or a range inline (mode: single, range), with month and year selects in the caption.
- [Checkbox](https://www.werewolf-ui.dev/components/checkbox.md): A 16px box that turns one option on or off, or shows partly on (indeterminate).
- [ColorPicker](https://www.werewolf-ui.dev/components/color-picker.md): Picks a color from a 2D saturation and brightness area, a hue bar and a hex field, in a Popover.
- [Combobox](https://www.werewolf-ui.dev/components/combobox.md): Picks one value from a long list by typing to filter it: Combobox (value, defaultValue, onValueChange, open, emptyText, placeholder, size, name) with ComboboxItem and ComboboxGroup children.
- [Counter](https://www.werewolf-ui.dev/components/counter.md): A compact whole-number count: a minus button, the value, and a plus button.
- [DatePicker](https://www.werewolf-ui.dev/components/date-picker.md): A field-looking trigger that opens a Calendar in a Popover, for picking one date or a range in a form (mode: single, range).
- [Field](https://www.werewolf-ui.dev/components/field.md): One form field: FieldLabel, FieldControl, FieldDescription and FieldError, with the ids linked and required, disabled and invalid set once.
- [FileUpload](https://www.werewolf-ui.dev/components/file-upload.md): A dropzone around a real file input, with accept, maxSize, maxFiles and multiple, and a list of files with upload progress, retry and remove buttons.
- [Input](https://www.werewolf-ui.dev/components/input.md): Single-line text field.
- [Label](https://www.werewolf-ui.dev/components/label.md): Visible name of a form control, with an optional required marker or "(optional)" note, and an optional info button with a tooltip.
- [NumberInput](https://www.werewolf-ui.dev/components/number-input.md): A formatted numeric field with a ruled stepper.
- [OtpInput](https://www.werewolf-ui.dev/components/otp-input.md): A one-time code field shown as equal slots: one real input with autocomplete one-time-code over a visual slot layer.
- [RadioGroup](https://www.werewolf-ui.dev/components/radio-group.md): One choice out of a few options: RadioGroup with RadioGroupItem, each with a label and an optional description.
- [Rating](https://www.werewolf-ui.dev/components/rating.md): Picks or shows a score on a short scale of stars.
- [RichTextEditor](https://www.werewolf-ui.dev/components/rich-text-editor.md): A text field with formatting: a toolbar of marks, headings, lists, quotes, code and links over editable text, with HTML in and out, a placeholder, a character count and limit, and a hidden input for forms.
- [Select](https://www.werewolf-ui.dev/components/select.md): Picks one value from a list.
- [Slider](https://www.werewolf-ui.dev/components/slider.md): Picks a number, or a range of two, by dragging a handle along a split track: one handle per value.
- [Switch](https://www.werewolf-ui.dev/components/switch.md): Turns a setting on or off at once.
- [Textarea](https://www.werewolf-ui.dev/components/textarea.md): Text field over several lines, with Input's look and states.
- [TimePicker](https://www.werewolf-ui.dev/components/time-picker.md): A field-looking trigger that opens hours and minutes, for picking a time of day.
- [Tokenizer](https://www.werewolf-ui.dev/components/tokenizer.md): A field that collects several short values as Tokens: Enter or a comma adds one, Backspace removes the last.

## Overlays

- [AlertDialog](https://www.werewolf-ui.dev/components/alert-dialog.md): Confirmation for a destructive action: Dialog's look, focus on Cancel, no close on a scrim click.
- [Command](https://www.werewolf-ui.dev/components/command.md): Searches and runs actions inline or in a dialog.
- [Dialog](https://www.werewolf-ui.dev/components/dialog.md): Modal dialog with scrim and focus trap.
- [HoverCard](https://www.werewolf-ui.dev/components/hover-card.md): Read-only preview content that opens on hover or keyboard focus of a link.
- [Popover](https://www.werewolf-ui.dev/components/popover.md): A panel anchored to its trigger for a short form, filters or a share link: Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverClose.
- [Sheet](https://www.werewolf-ui.dev/components/sheet.md): A dialog that slides in from an edge: Sheet, SheetTrigger, SheetContent (side: top, right, bottom, left; size: sm, md, lg, full; showCloseButton; swipeToDismiss on bottom), SheetHeader, SheetTitle, SheetDescription, SheetFooter, SheetClose.
- [Toast](https://www.werewolf-ui.dev/components/toast.md): A short message after an action, in the corner of the screen: mount one Toaster at the root and call toast({ title, description, variant, action, duration }).
- [Tooltip](https://www.werewolf-ui.dev/components/tooltip.md): Short text hint for the element it wraps, on hover and keyboard focus: <Tooltip content="Copy link">.

## Navigation

- [BottomNav](https://www.werewolf-ui.dev/components/bottom-nav.md): A named mobile navigation bar with links, optional counts, and the selected state.
- [Breadcrumb](https://www.werewolf-ui.dev/components/breadcrumb.md): The path to the current page: Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink (asChild), BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis.
- [Link](https://www.werewolf-ui.dev/components/link.md): An underlined destination with optional external indicator.
- [Navbar](https://www.werewolf-ui.dev/components/navbar.md): Site navigation across the top of the page: brand, links, one submenu of links and actions.
- [Pagination](https://www.werewolf-ui.dev/components/pagination.md): Moves between pages: Pagination with page, pageCount, siblingCount and getHref (links) or onPageChange (buttons); or PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis for your own layout.
- [Sidebar](https://www.werewolf-ui.dev/components/sidebar.md): App shell navigation: SidebarProvider, Sidebar, SidebarHeader, SidebarContent, SidebarFooter, SidebarSection, SidebarItem, SidebarTrigger, SidebarInset.
- [Stepper](https://www.werewolf-ui.dev/components/stepper.md): Shows progress through an ordered flow.
- [Tabs](https://www.werewolf-ui.dev/components/tabs.md): Switches between panels in place.

## Layout

- [Accordion](https://www.werewolf-ui.dev/components/accordion.md): Sections that open in place: Accordion (type single or multiple, collapsible, headingLevel), AccordionItem, AccordionTrigger, AccordionContent.
- [Card](https://www.werewolf-ui.dev/components/card.md): Bordered surface for grouping related content.
- [ResizablePanels](https://www.werewolf-ui.dev/components/resizable-panels.md): Panels side by side or stacked, with a line between them that the user drags or moves with the arrow keys.
- [ScrollArea](https://www.werewolf-ui.dev/components/scroll-area.md): Scrollable content with a thin themed native scrollbar.
- [Separator](https://www.werewolf-ui.dev/components/separator.md): A 1px line that splits content into groups.

## Data display

- [Avatar](https://www.werewolf-ui.dev/components/avatar.md): A person, team or workspace as a photo, or one or two initials on a hue pair when there is no photo.
- [AvatarStack](https://www.werewolf-ui.dev/components/avatar-stack.md): A few people as Avatars that overlap in a row, the first on top, then +N for the rest.
- [Badge](https://www.werewolf-ui.dev/components/badge.md): Compact status or category label: soft fills (background-<hue> with text-<hue>) or outline.
- [Carousel](https://www.werewolf-ui.dev/components/carousel.md): Shows one slide at a time, with previous and next buttons and a dot for each slide on a glass pill.
- [Chart](https://www.werewolf-ui.dev/components/chart.md): Eleven typed chart forms with responsive geometry, inspection and an accessible data table.
- [Checklist](https://www.werewolf-ui.dev/components/checklist.md): A titled list of tasks with a progress bar, such as getting started steps.
- [CodeBlock](https://www.werewolf-ui.dev/components/code-block.md): A block of code to read and copy: file name and language header, copy button with feedback, line numbers, highlighted lines, wrap or scroll, and a small pluggable highlighter.
- [DataTrend](https://www.werewolf-ui.dev/components/data-trend.md): A metric block with a label, current value and change.
- [GroupAvatar](https://www.werewolf-ui.dev/components/group-avatar.md): One circle for a group, split into tiles instead of stacked: two halves, a half and two quarters, or four quarters with +N.
- [Image](https://www.werewolf-ui.dev/components/image.md): Displays an image in a frame that keeps its size, with a blurred placeholder that the full image fades in over.
- [Kbd](https://www.werewolf-ui.dev/components/kbd.md): Displays a keyboard shortcut or key sequence.
- [List](https://www.werewolf-ui.dev/components/list.md): A named list of rows for records, settings and choices: a leading mark, a title with a supporting line, trailing content and a chevron.
- [Logo](https://www.werewolf-ui.dev/components/logo.md): The mark of another product (AI agents, Google services, social networks, developer tools) or the flag of a country, at icon sizes, in the icon color or its own colors.
- [Metadata](https://www.werewolf-ui.dev/components/metadata.md): Read-only label and value pairs in a description list: <MetadataItem label="Owner">.
- [SortableList](https://www.werewolf-ui.dev/components/sortable-list.md): A list the user reorders by dragging a row's grip handle or with the keyboard, with every move announced.
- [Table](https://www.werewolf-ui.dev/components/table.md): Rows of data: Table, TableHeader, TableBody, TableFooter, TableRow (selected), TableHead (align, numeric, fit, sortDirection, onSort), TableCell (align, numeric, fit), TableCaption, TableEmpty, and TableToolbar with TableActions for the bars above and below.
- [Timeline](https://www.werewolf-ui.dev/components/timeline.md): An ordered list of events with dot, icon or avatar markers colored by status, a connector line, title, time, description and content; vertical or horizontal.
- [Token](https://www.werewolf-ui.dev/components/token.md): Pill that names a token or short machine value, on a soft hue pair (pink by default), with an optional 12px icon, color swatch or 16px avatar, and an optional remove button (onRemove, removeLabel).
- [Tree](https://www.werewolf-ui.dev/components/tree.md): Nested items that open and close, such as a file tree or an outline.

## Feedback

- [Alert](https://www.werewolf-ui.dev/components/alert.md): An inline named message with optional action and dismissal.
- [EmptyState](https://www.werewolf-ui.dev/components/empty-state.md): Explains an empty successful result and its next action.
- [Progress](https://www.werewolf-ui.dev/components/progress.md): A bar, circle or half circle for how much of a task is done, drawn as Slider's 12px track.
- [Skeleton](https://www.werewolf-ui.dev/components/skeleton.md): A gray block that holds the place of content while it loads.
- [Spinner](https://www.werewolf-ui.dev/components/spinner.md): A turning arc for work of unknown length, with a visually hidden label.

## Chat

- [AttachmentPreview](https://www.werewolf-ui.dev/components/attachment-preview.md): A file attached to a message: thumbnail or type icon, name, then size, upload progress or error, and a remove button.
- [Composer](https://www.werewolf-ui.dev/components/composer.md): The field where a message is written: a reply bar, attachments, text that grows as you type, your tools and a send button that becomes stop while a reply streams in.
- [ConversationList](https://www.werewolf-ui.dev/components/conversation-list.md): A list of conversations beside a chat: avatar, name, time, last message and an unread count.
- [EmojiPicker](https://www.werewolf-ui.dev/components/emoji-picker.md): Search and pick an emoji from a grid in categories, with frequently used ones first and full keyboard support.
- [MessageActions](https://www.werewolf-ui.dev/components/message-actions.md): The toolbar a message shows on hover, focus or a tap: react with quick reactions or the full emoji picker, reply, forward, pin, select and your own menu.
- [MessageBubble](https://www.werewolf-ui.dev/components/message-bubble.md): One message: the bubble, avatar and author, a reply quote, reactions, a hover toolbar slot, selection, and the time, edited, pinned and delivery status (sending, sent, delivered, read, failed; read shows as Seen, failed offers a retry).
- [MessageList](https://www.werewolf-ui.dev/components/message-list.md): The scrolling log of a conversation.
