# Dice UI > Accessible components built with React, TypeScript and Tailwind CSS. Copy-paste ready and fully customizable. Dice UI is a shadcn/ui registry of React components that shadcn/ui doesn't ship, such as comboboxes, data grids, kanban boards and file uploads. Components are copied into your project as source, not imported from a package. ## When to use Dice UI - Use Dice UI in a React project that already uses shadcn/ui and Tailwind CSS and needs one of the components below. - Prefer shadcn/ui's own component when shadcn/ui has one, such as Kbd. - Every component exists for Base UI (the default, under `/docs/components/base`) and Radix UI (under `/docs/components/radix`) with the same names and props. Pick the one matching the project's primitives. ## Install with the shadcn CLI Add a component by name with the shadcn CLI, from a project that has a `components.json`: ```bash npx shadcn@latest add @diceui/ ``` The CLI installs the version matching the `style` in `components.json` and follows its `iconLibrary` and `rtl` settings. Each entry below lists its exact command. ## Markdown Every docs page is available as Markdown by adding `.md` to its URL or by requesting it with `Accept: text/markdown`. [llms-full.txt](https://diceui.com/llms-full.txt) has every page in one file. ## Docs - [Introduction](https://diceui.com/docs/introduction.md): Accessible shadcn/ui components built with React, TypeScript, and Tailwind CSS. Copy-paste ready, and customizable. - [Components](https://diceui.com/docs/components.md): Browse all the accessible, customizable, and copy-paste ready components. - [Utilities](https://diceui.com/docs/utilities.md): Browse the helper components and hooks the Dice UI components are built on. - [Changelog](https://diceui.com/docs/changelog.md): Latest updates, improvements, and announcements. ## Components - [Action Bar](https://diceui.com/docs/components/base/action-bar.md): A floating action bar that appears at the bottom or top of the viewport to display contextual actions for selected items. Use when a list or table lets people select items and they need bulk actions on the selection. Install: `npx shadcn@latest add @diceui/action-bar` - [Angle Slider](https://diceui.com/docs/components/base/angle-slider.md): An interactive circular slider for selecting angles with support for single values and ranges. Use when a value is an angle or a position on a circle, such as rotation or hue. Install: `npx shadcn@latest add @diceui/angle-slider` - [Avatar Group](https://diceui.com/docs/components/base/avatar-group.md): A component that arranges avatars with overlapping visual effects for displaying multiple users or items. Use when several people or entities share one compact spot. Install: `npx shadcn@latest add @diceui/avatar-group` - [Badge Overflow](https://diceui.com/docs/components/base/badge-overflow.md): A component that intelligently manages badge overflow by measuring available space and displaying only what fits with an overflow indicator. Use when a set number of lines of badges or tags must show a +N count for the rest. Install: `npx shadcn@latest add @diceui/badge-overflow` - [Banner](https://diceui.com/docs/components/base/banner.md): A notification banner that appears at the top or bottom of the viewport. Supports queuing, priority, and auto-dismiss. Use when an app-wide notice, such as an announcement or a maintenance warning, sits above or below the page. Install: `npx shadcn@latest add @diceui/banner` - [Checkbox Group](https://diceui.com/docs/components/base/checkbox-group.md): A group of checkboxes that allows multiple selections with support for validation and accessibility. Use when a form field accepts several options from a short visible list. Install: `npx shadcn@latest add @diceui/checkbox-group` - [Circular Progress](https://diceui.com/docs/components/base/circular-progress.md): A circular progress indicator that displays completion progress in a ring format with support for indeterminate states. Use when progress should show as a ring, such as an upload or a quota. Install: `npx shadcn@latest add @diceui/circular-progress` - [Color Picker](https://diceui.com/docs/components/base/color-picker.md): A color picker component that allows users to select colors using various input methods. Use when people choose any color, with an area, hue slider and typed values. Install: `npx shadcn@latest add @diceui/color-picker` - [Color Swatch](https://diceui.com/docs/components/base/color-swatch.md): A color swatch component for displaying color values with support for transparency and various sizes. Use when a color value needs to be displayed, not edited. Install: `npx shadcn@latest add @diceui/color-swatch` - [Combobox](https://diceui.com/docs/components/base/combobox.md): An input with a popover that helps users filter through a list of options. Use when people type to filter a list of options and pick one or more, with an input as the trigger. Install: `npx shadcn@latest add @diceui/combobox` - [Command Stack](https://diceui.com/docs/components/base/command-stack.md): A searchable command list with nested pages that works inline, in a popover, or in a dialog. Use when a command palette or menu needs nested pages, such as Settings > Theme > Dark. Install: `npx shadcn@latest add @diceui/command-stack` - [Compare Slider](https://diceui.com/docs/components/base/compare-slider.md): An interactive before/after comparison slider for comparing two elements side by side. Use when two images or elements are compared by dragging a divider between them. Install: `npx shadcn@latest add @diceui/compare-slider` - [Cropper](https://diceui.com/docs/components/base/cropper.md): A powerful image and video cropper with zoom, rotation, and customizable crop areas. Use when people crop, zoom or rotate an image or video before using it. Install: `npx shadcn@latest add @diceui/cropper` - [Data Grid](https://diceui.com/docs/components/base/data-grid.md): A high-performance editable data grid component with virtualization, keyboard navigation, and comprehensive cell editing capabilities. Use when people edit tabular data cell by cell like a spreadsheet, with keyboard navigation and many rows. Install: `npx shadcn@latest add @diceui/data-grid` - [Data Table](https://diceui.com/docs/components/base/data-table.md): A powerful and flexible data table component for displaying, filtering, sorting, and paginating tabular data. Use when tabular data needs sorting, filtering and pagination kept in the URL, on the server or the client, without editing cells. Install: `npx shadcn@latest add @diceui/data-table` - [Editable](https://diceui.com/docs/components/base/editable.md): An accessible inline editable component for editing text content in place. Use when a piece of text is edited in place instead of in a form. Install: `npx shadcn@latest add @diceui/editable` - [Faceted](https://diceui.com/docs/components/base/faceted.md): A searchable popover for picking one or more values, with badges for the current selection. Use when people pick one or more values from a searchable popover, shown as badges, such as a table toolbar filter. Install: `npx shadcn@latest add @diceui/faceted` - [File Upload](https://diceui.com/docs/components/base/file-upload.md): A file upload component with drag and drop, previewing, and progress tracking. Use when people drop or pick files and see previews, progress and errors. Install: `npx shadcn@latest add @diceui/file-upload` - [FPS](https://diceui.com/docs/components/base/fps.md): A real-time frames per second (FPS) counter component for monitoring performance. Use when frame rate needs to be monitored while developing animations. Install: `npx shadcn@latest add @diceui/fps` - [Gauge](https://diceui.com/docs/components/base/gauge.md): A customizable gauge component that displays values on circular or partial arcs, perfect for dashboards, metrics, and KPIs. Use when a single value is shown against a range, such as a score or a usage metric on a dashboard. Install: `npx shadcn@latest add @diceui/gauge` - [Kanban](https://diceui.com/docs/components/base/kanban.md): A drag and drop kanban board component for organizing items into columns. Use when items move between columns by drag and drop, as on a task board. Install: `npx shadcn@latest add @diceui/kanban` - [Kbd](https://diceui.com/docs/components/base/kbd.md): A keyboard key primitive for displaying keyboard shortcuts and key combinations. Deprecated: use shadcn/ui's Kbd instead. - [Key Value](https://diceui.com/docs/components/base/key-value.md): A dynamic input component for managing key-value pairs with paste support and validation. Use when people enter a variable list of key and value pairs, such as environment variables or headers. Install: `npx shadcn@latest add @diceui/key-value` - [Listbox](https://diceui.com/docs/components/base/listbox.md): A component for creating keyboard-navigable selection lists and grids. Use when an always-visible list or grid of options needs keyboard selection, without a popup. Install: `npx shadcn@latest add @diceui/listbox` - [Marquee](https://diceui.com/docs/components/base/marquee.md): An animated scrolling component that continuously moves content horizontally or vertically. Use when content such as logos or testimonials scrolls continuously. Install: `npx shadcn@latest add @diceui/marquee` - [Mask Input](https://diceui.com/docs/components/base/mask-input.md): An input component that formats user input with predefined patterns like phone numbers, dates, and credit cards. Use when an input must follow a fixed format, such as a date, card number or phone number. Install: `npx shadcn@latest add @diceui/mask-input` - [Masonry](https://diceui.com/docs/components/base/masonry.md): A responsive masonry layout component for displaying items in a grid. Use when items of different heights are laid out in columns, like a gallery. Install: `npx shadcn@latest add @diceui/masonry` - [Media Player](https://diceui.com/docs/components/base/media-player.md): A media player for video and audio, built on Video.js, with composable controls for files, HLS, YouTube and Vimeo. Use when video or audio needs custom controls, including HLS, YouTube and Vimeo sources. Install: `npx shadcn@latest add @diceui/media-player` - [Mention](https://diceui.com/docs/components/base/mention.md): A component that allows to mention items in a list by a trigger character. Use when typing a trigger character such as @ in a text field should suggest people or items. Install: `npx shadcn@latest add @diceui/mention` - [Phone Input](https://diceui.com/docs/components/base/phone-input.md): An accessible phone input component with automatic country detection and international phone number formatting. Use when a form collects an international phone number with a country selector. Install: `npx shadcn@latest add @diceui/phone-input` - [Presentation](https://diceui.com/docs/components/base/presentation.md): Composable primitives for viewing and editing PowerPoint presentations in the browser. Use when PowerPoint (.pptx) files are viewed or edited in the browser. Install: `npx shadcn@latest add @diceui/presentation` - [QR Code](https://diceui.com/docs/components/base/qr-code.md): A flexible QR code component for generating and displaying QR codes with customization options. Use when a URL or text is shared as a scannable QR code. Install: `npx shadcn@latest add @diceui/qr-code` - [Query Builder](https://diceui.com/docs/components/base/query-builder.md): A composable query builder for nested filter rules and groups, with parameterized SQL output. Use when people build nested filter rules with AND and OR groups, or the app needs parameterized SQL from them. Install: `npx shadcn@latest add @diceui/query-builder` - [Rating](https://diceui.com/docs/components/base/rating.md): An accessible rating component that allows users to provide star ratings with support for half values, keyboard navigation, and form integration. Use when people give or see a star rating, including half stars. Install: `npx shadcn@latest add @diceui/rating` - [Relative Time Card](https://diceui.com/docs/components/base/relative-time-card.md): A hover card that displays relative time relative to local time with timezone information. Use when a timestamp is shown as relative time, with exact times across time zones on hover. Install: `npx shadcn@latest add @diceui/relative-time-card` - [Responsive Dialog](https://diceui.com/docs/components/base/responsive-dialog.md): A dialog component that automatically switches between a centered dialog on desktop and a bottom drawer on mobile. Use when a dialog should become a bottom drawer on small screens. Install: `npx shadcn@latest add @diceui/responsive-dialog` - [Scroll Spy](https://diceui.com/docs/components/base/scroll-spy.md): Automatically updates navigation links based on scroll position with support for nested sections and customizable behavior. Use when a table of contents or nav highlights the section currently in view. Install: `npx shadcn@latest add @diceui/scroll-spy` - [Scroller](https://diceui.com/docs/components/base/scroller.md): A scrollable container with customizable scroll shadows and navigation buttons. Use when a scroll area needs fade shadows at its edges or buttons to scroll. Install: `npx shadcn@latest add @diceui/scroller` - [Segmented Input](https://diceui.com/docs/components/base/segmented-input.md): A group of connected input fields that appear as a single segmented visual unit. Use when several related values read as one field, such as first and last name or RGB channels. Install: `npx shadcn@latest add @diceui/segmented-input` - [Selection Toolbar](https://diceui.com/docs/components/base/selection-toolbar.md): A floating toolbar that appears on text selection with formatting and utility actions. Use when selecting text should show a floating toolbar with formatting or actions. Install: `npx shadcn@latest add @diceui/selection-toolbar` - [Sortable](https://diceui.com/docs/components/base/sortable.md): A drag and drop sortable component for reordering items. Use when items in a list or grid are reordered by drag and drop. Install: `npx shadcn@latest add @diceui/sortable` - [Speed Dial](https://diceui.com/docs/components/base/speed-dial.md): A floating action button that reveals a set of actions when triggered. Use when a floating action button expands into a few related actions. Install: `npx shadcn@latest add @diceui/speed-dial` - [Stack](https://diceui.com/docs/components/base/stack.md): A component that displays items in a stacked layout with hover expansion effects, similar to Sonner toast stacking. Use when cards or notifications stack and expand on hover. Install: `npx shadcn@latest add @diceui/stack` - [Stat](https://diceui.com/docs/components/base/stat.md): A flexible component for displaying key metrics and statistics with support for trends, indicators, and descriptions. Use when a dashboard shows key numbers with labels, trends and descriptions. Install: `npx shadcn@latest add @diceui/stat` - [Status](https://diceui.com/docs/components/base/status.md): A flexible status indicator component with animated ping effect and color variants for displaying system states, user presence, and service health. Use when a small indicator shows a state such as online, offline or away. Install: `npx shadcn@latest add @diceui/status` - [Stepper](https://diceui.com/docs/components/base/stepper.md): A component that guides users through a multi-step process with clear visual progress indicators. Use when a task is split into ordered steps, such as checkout or onboarding. Install: `npx shadcn@latest add @diceui/stepper` - [Swap](https://diceui.com/docs/components/base/swap.md): A component that swaps between two states with click or hover activation modes. Use when one element toggles between two states, such as a light and dark mode icon. Install: `npx shadcn@latest add @diceui/swap` - [Tags Input](https://diceui.com/docs/components/base/tags-input.md): Display a list of tags in an input field with the ability to add, edit, and remove them. Use when people type free-form values that become removable tags in one field. Install: `npx shadcn@latest add @diceui/tags-input` - [Time Picker](https://diceui.com/docs/components/base/time-picker.md): An accessible time picker component with inline editing and dropdown selection. Automatically adapts to 12-hour or 24-hour format based on user locale. Use when a form needs a time of day, in 12-hour or 24-hour format based on locale. Install: `npx shadcn@latest add @diceui/time-picker` - [Timeline](https://diceui.com/docs/components/base/timeline.md): A flexible timeline component for displaying chronological events with support for different orientations, RTL layouts, and visual states. Use when events are shown in chronological order. Install: `npx shadcn@latest add @diceui/timeline` - [Tour](https://diceui.com/docs/components/base/tour.md): A guided tour component that highlights elements and provides step-by-step instructions to help users learn about your application. Use when new users are walked through an interface step by step. Install: `npx shadcn@latest add @diceui/tour` ## Utilities - [Client Only](https://diceui.com/docs/utilities/base/client-only.md): Renders client-only components with hydration and fallback support. Use when a component relies on browser APIs and must render only after hydration. Install: `npx shadcn@latest add @diceui/client-only` - [Composition](https://diceui.com/docs/utilities/base/composition.md): How Dice UI components compose with your own elements, components, props and refs. Use when you need to replace a part's element or merge your own props and refs into it. - [Direction Provider](https://diceui.com/docs/utilities/base/direction-provider.md): Provides bidirectional text support (RTL/LTR) across your application. Deprecated: use shadcn/ui's Direction instead. - [Hitbox](https://diceui.com/docs/utilities/base/hitbox.md): A utility component that extends the clickable area of child elements for improved accessibility and user experience. Use when a small control needs a larger clickable area without changing its look. Install: `npx shadcn@latest add @diceui/hitbox` - [Pending](https://diceui.com/docs/utilities/base/pending.md): A utility component that disables interactions, maintains keyboard focus, and ensures proper accessibility for buttons, forms, links, switches, and any interactive element while they are pending. Use when a button, form or link is waiting on an action and must stay focusable but inert. Install: `npx shadcn@latest add @diceui/pending` - [Portal](https://diceui.com/docs/utilities/base/portal.md): Renders React elements into a different part of the DOM tree. Use when content renders outside its parent in the DOM, such as an overlay. Install: `npx shadcn@latest add @diceui/portal` - [Presence](https://diceui.com/docs/utilities/base/presence.md): Manages element mounting and unmounting with animation support. Use when an element animates out before it unmounts. Install: `npx shadcn@latest add @diceui/presence` - [Skip Nav](https://diceui.com/docs/utilities/base/skip-nav.md): A link that lets keyboard and screen reader users skip past repeated navigation to the main content. Use when keyboard and screen reader users need to skip repeated navigation. Install: `npx shadcn@latest add @diceui/skip-nav` - [Visually Hidden](https://diceui.com/docs/utilities/base/visually-hidden.md): Hides content visually while keeping it accessible to screen readers. Use when text is for screen readers only, such as a label for an icon button. Install: `npx shadcn@latest add @diceui/visually-hidden` - [Visually Hidden Input](https://diceui.com/docs/utilities/base/visually-hidden-input.md): A hidden input that remains accessible to assistive technology and maintains form functionality. Use when a custom control still submits a value with a native form. Install: `npx shadcn@latest add @diceui/visually-hidden-input` ## Optional - [Source code](https://github.com/sadmann7/diceui): The components, registry and docs on GitHub. - [Registry index](https://diceui.com/r/index.json): Every registry item as JSON.