# Introduction Beautifully designed components for Remix 3. A faithful port of shadcn/ui, works with the shadcn CLI. **shadcn-remix** is shadcn/ui for [Remix 3](https://remix.run): the same components, the same API and the same styles, written with `remix/component` and its `css()` mixin, with behavior from the [@remix-run/ui](https://www.npmjs.com/package/@remix-run/ui) headless primitives. ## Philosophy shadcn-remix follows the shadcn model: copy-paste components you own, with zero lock-in and sensible defaults that work immediately. It is not a component library you install — it is the source, distributed through a shadcn registry. Remix 3 components are not React components. A component is a setup function that returns a render function, styles are mixins instead of class names, and interactivity hydrates per `clientEntry`. shadcn-remix keeps the shadcn/ui API — names, props, variants and `data-*` attributes — and translates only what the runtime requires. ## Why shadcn-remix? - **Own Your Code:** Every component is one file in `app/ui`. Change anything. - **Exact Port:** Tailwind classes are translated declaration by declaration, so components match ui.shadcn.com pixel for pixel. - **Server First:** Components render on the server; only interactive ones hydrate. - **No Build Step:** Styles are generated by `css()` at render time — no Tailwind, no PostCSS. ## Features - **Zero Config:** Works out of the box with sensible defaults. No build step, no Tailwind. - **Theme Aware:** Built on the shadcn/ui CSS variables, with light and dark themes. - **Composable:** The same component composition and data attributes as shadcn/ui. - **TypeScript:** Typed props for every component, down to each host element. - **Copy & Paste:** Own your code. Each component is a single file you copy into app/ui. - **shadcn Compatible:** Uses the shadcn registry format — add components with npx shadcn add. ## From shadcn/ui to Remix | shadcn/ui (React) | shadcn-remix | | --- | --- | | `className="w-40"` | `mix={css({ width: '10rem' })}` | | `` | `` | | ` ``` # Registry How the shadcn-remix registry is structured and how to consume it with the shadcn CLI. shadcn-remix is a [shadcn registry](https://ui.shadcn.com/docs/registry) — a collection of components distributed as source code over HTTP. The `shadcn` CLI reads a JSON descriptor for each item and copies its files straight into your project. ## Installing an item Point the CLI at any item’s JSON URL: ```bash npx shadcn@latest add https://www.shadcn-remix.com/r/button.json ``` The CLI installs the npm dependencies, pulls in the registry dependencies, and writes the files to `app/ui/`. You own the code from that point on. ## Namespaced registry Add the registry to `components.json` under `registries` to install items by name. ```json title="components.json" { "registries": { "@shadcn-remix": "https://www.shadcn-remix.com/r/{name}.json" } } ``` ```bash npx shadcn@latest add @shadcn-remix/button @shadcn-remix/dialog ``` ## Registry structure [/r/registry.json](/r/registry.json) lists every item, and `/r/.json` serves one item with its file contents. A component item looks like this: ```json title="/r/dialog.json" { "name": "dialog", "type": "registry:ui", "dependencies": ["remix"], "registryDependencies": [ "https://www.shadcn-remix.com/r/globals.json", "https://www.shadcn-remix.com/r/button.json", "https://www.shadcn-remix.com/r/icons.json" ], "files": [ { "path": "app/ui/dialog.tsx", "type": "registry:file", "target": "app/ui/dialog.tsx", "content": "…" } ] } ``` - `dependencies` — npm packages the CLI installs for you. Every component needs `remix`; components built on its headless primitives also need `@remix-run/ui`. - `registryDependencies` — other items of this registry, installed automatically. Every component depends on `globals`. - `files` — each component is one `registry:file` with an explicit `target`, so the CLI writes it to `app/ui/` without a Tailwind or framework preset. ## Support items | Item | File | Contents | | --- | --- | --- | | `globals` | `app/ui/globals.css` | Theme tokens, preflight, and keyframes | | `icons` | `app/ui/icons.tsx` | Lucide icons as Remix components | ## No build step The registry is served straight from the component sources in `app/ui/`, so there is nothing to rebuild after editing a component — the next request returns the new file. > Want to publish your own registry? Follow the official [registry guide](https://ui.shadcn.com/docs/registry/getting-started). # MCP Install components from this registry with your AI coding agent via the shadcn MCP server. The [shadcn MCP server](https://ui.shadcn.com/docs/mcp) lets AI coding agents browse and install registry items for you. Point it at this registry and you can ask for “the button and dialog components” and the agent runs the install. ## Configure the registry Add this registry to your project’s `components.json` under `registries`: ```json title="components.json" { "registries": { "@shadcn-remix": "https://www.shadcn-remix.com/r/{name}.json" } } ``` ## Add the MCP server ### Claude Code Run the shadcn MCP init command, or add the server to `.mcp.json` manually: ```bash npx shadcn@latest mcp init --client claude ``` ```json title=".mcp.json" { "mcpServers": { "shadcn": { "command": "npx", "args": ["shadcn@latest", "mcp"] } } } ``` ### Cursor Run the shadcn MCP init command, or add the server to `.cursor/mcp.json` manually: ```bash npx shadcn@latest mcp init --client cursor ``` ```json title=".cursor/mcp.json" { "mcpServers": { "shadcn": { "command": "npx", "args": ["-y", "shadcn@latest", "mcp"] } } } ``` ### VS Code Run the shadcn MCP init command, or add the server to `.vscode/mcp.json` manually: ```bash npx shadcn@latest mcp init --client vscode ``` ```json title=".vscode/mcp.json" { "servers": { "shadcn": { "command": "npx", "args": ["shadcn@latest", "mcp"] } } } ``` ## Use it Once configured, prompt your agent naturally: ```text Show me the components available in the @shadcn-remix registry. Add the dialog and dropdown-menu components to my project. ``` The agent reads each item’s JSON, installs the npm dependencies, and writes the sources into `app/ui/` — the same result as running the CLI yourself. > The MCP server reads the registries from `components.json`. Make sure the `@shadcn-remix` entry above is present before starting your agent. ## Docs for LLMs Agents that read documentation directly can start from [/llms.txt](/llms.txt), an index of every page, or fetch all of it at once from [/llms-full.txt](/llms-full.txt). Append `.md` to any docs URL for its markdown, like [/docs/installation.md](/docs/installation.md). # Changelog Notable changes to the shadcn-remix registry and docs. ## November 2026 ### Initial release The first release of shadcn-remix: 36 shadcn/ui components ported to Remix 3. Install them with the shadcn CLI or MCP from the registry at `/r/registry.json`. # Components - [Accordion](/docs/components/accordion): A vertically stacked set of interactive headings that each reveal a section of content. - [Alert](/docs/components/alert): Displays a callout for user attention. - [Avatar](/docs/components/avatar): An image element with a fallback for representing the user. - [Badge](/docs/components/badge): Displays a badge or a component that looks like a badge. - [Breadcrumb](/docs/components/breadcrumb): Displays the path to the current resource using a hierarchy of links. - [Button](/docs/components/button): Displays a button or a component that looks like a button. - [Card](/docs/components/card): Displays a card with header, content, and footer. - [Checkbox](/docs/components/checkbox): A control that allows the user to toggle between checked and not checked. - [Combobox](/docs/components/combobox): Autocomplete input with a list of suggestions. - [Context Menu](/docs/components/context-menu): Displays a menu of actions triggered by a right click. - [Dialog](/docs/components/dialog): A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. - [Dropdown Menu](/docs/components/dropdown-menu): Displays a menu to the user — such as a set of actions or functions — triggered by a button. - [Empty](/docs/components/empty): Use the Empty component to display an empty state. - [Field](/docs/components/field): Combine labels, controls, and help text to compose accessible form fields and grouped inputs. - [Hover Card](/docs/components/hover-card): For sighted users to preview content available behind a link. - [Input](/docs/components/input): A text input component for forms and user data entry with built-in styling and accessibility features. - [Input Group](/docs/components/input-group): Add addons, buttons, and helper content to inputs. - [Item](/docs/components/item): A versatile component for displaying content with media, title, description, and actions. - [Kbd](/docs/components/kbd): Used to display textual user input from keyboard. - [Label](/docs/components/label): Renders an accessible label associated with controls. - [Popover](/docs/components/popover): Displays rich content in a portal, triggered by a button. - [Progress](/docs/components/progress): Displays an indicator showing the completion progress of a task, typically displayed as a progress bar. - [Radio Group](/docs/components/radio-group): A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time. - [Select](/docs/components/select): Displays a list of options for the user to pick from—triggered by a button. - [Separator](/docs/components/separator): Visually or semantically separates content. - [Sheet](/docs/components/sheet): Extends the Dialog component to display content that complements the main content of the screen. - [Sidebar](/docs/components/sidebar): A composable, themeable and customizable sidebar component. - [Skeleton](/docs/components/skeleton): Use to show a placeholder while content is loading. - [Spinner](/docs/components/spinner): An indicator that can be used to show a loading state. - [Switch](/docs/components/switch): A control that allows the user to toggle between checked and not checked. - [Table](/docs/components/table): A responsive table component. - [Tabs](/docs/components/tabs): A set of layered sections of content—known as tab panels—that are displayed one at a time. - [Textarea](/docs/components/textarea): Displays a form textarea or a component that looks like a textarea. - [Toggle](/docs/components/toggle): A two-state button that can be either on or off. - [Toggle Group](/docs/components/toggle-group): A set of two-state buttons that can be toggled on or off. - [Tooltip](/docs/components/tooltip): A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it. # Accordion A vertically stacked set of interactive headings that each reveal a section of content. ```tsx import { css } from 'remix/component' import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '#app/ui/accordion.tsx' const contentStyles = css({ display: 'flex', flexDirection: 'column', gap: '1rem', textWrap: 'balance', }) export function AccordionDemo() { return () => ( Product Information

Our flagship product combines cutting-edge technology with sleek design. Built with premium materials, it offers unparalleled performance and reliability.

Key features include advanced processing capabilities, and an intuitive user interface designed for both beginners and experts.

Shipping Details

We offer worldwide shipping through trusted courier partners. Standard delivery takes 3-5 business days, while express shipping ensures delivery within 1-2 business days.

All orders are carefully packaged and fully insured. Track your shipment in real-time through our dedicated tracking portal.

Return Policy

We stand behind our products with a comprehensive 30-day return policy. If you're not completely satisfied, simply return the item in its original condition.

Our hassle-free return process includes free return shipping and full refunds processed within 48 hours of receiving the returned item.

) } ``` ## Installation ```bash npx shadcn@latest add https://www.shadcn-remix.com/r/accordion.json ``` ## Usage ```tsx import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from '#app/ui/accordion.tsx' ``` ```tsx Is it accessible? Yes. It adheres to the WAI-ARIA design pattern. ``` ## Composition Use the following composition to build an `Accordion`: ```tsx Accordion └── AccordionItem ├── AccordionTrigger └── AccordionContent ``` ## API Reference ### Accordion Root `
`. Arrow Up/Down, Home and End move focus between triggers. | Prop | Type | Default | | --- | --- | --- | | `type` | `"single" \| "multiple"` | - | | `value` | `string \| string[]` | - | | `defaultValue` | `string \| string[]` | - | | `onValueChange` | `(value: string \| string[]) => void` | - | | `collapsible` | `boolean` | `false` | | `disabled` | `boolean` | `false` | | `mix` | `MixValue` | - | ### AccordionItem Item wrapper `
` with `data-state="open" | "closed"`. | Prop | Type | Default | | --- | --- | --- | | `value` | `string` | - | | `disabled` | `boolean` | `false` | | `mix` | `MixValue` | - | ### AccordionTrigger A `
) } ``` ## Installation ```bash npx shadcn@latest add https://www.shadcn-remix.com/r/button.json ``` ## Usage ```tsx import { Button } from '#app/ui/button.tsx' ``` ```tsx ``` ## Examples ### Size Use the `size` prop to change the size of the button. ```tsx import { css } from 'remix/component' import { Button } from '#app/ui/button.tsx' import { ArrowUpRightIcon } from '#app/ui/icons.tsx' const row = css({ display: 'flex', alignItems: 'flex-start', gap: '0.5rem' }) export function ButtonSize() { return () => (
) } ``` ### Default ```tsx import { Button } from '#app/ui/button.tsx' export function ButtonDefault() { return () => } ``` ### Outline ```tsx import { Button } from '#app/ui/button.tsx' export function ButtonOutline() { return () => } ``` ### Secondary ```tsx import { Button } from '#app/ui/button.tsx' export function ButtonSecondary() { return () => } ``` ### Ghost ```tsx import { Button } from '#app/ui/button.tsx' export function ButtonGhost() { return () => } ``` ### Destructive ```tsx import { Button } from '#app/ui/button.tsx' export function ButtonDestructive() { return () => } ``` ### Link ```tsx import { Button } from '#app/ui/button.tsx' export function ButtonLink() { return () => } ``` ### Icon ```tsx import { Button } from '#app/ui/button.tsx' import { CircleFadingArrowUpIcon } from '#app/ui/icons.tsx' export function ButtonIcon() { return () => ( ) } ``` ### With Icon ```tsx import { Button } from '#app/ui/button.tsx' import { GitBranchIcon } from '#app/ui/icons.tsx' export function ButtonWithIcon() { return () => ( ) } ``` ### Rounded Pass a `css(...)` mix to override styles, the equivalent of `className="rounded-full"`. ```tsx import { css } from 'remix/component' import { Button } from '#app/ui/button.tsx' import { ArrowUpIcon } from '#app/ui/icons.tsx' export function ButtonRounded() { return () => (
) } ``` ### Spinner Render a `` inside the button to show a loading state. ```tsx import { Button } from '#app/ui/button.tsx' import { Spinner } from '#app/ui/spinner.tsx' export function ButtonLoading() { return () => ( ) } ``` ### As Child Remix components have no `asChild`. Apply `buttonVariants()` to any element to make it look like a button, here a link. ```tsx import { buttonVariants } from '#app/ui/button.tsx' export function ButtonAsChild() { return () => (
Login ) } ``` ## API Reference ### Button Renders a native `
) } ``` ## Installation ```bash npx shadcn@latest add https://www.shadcn-remix.com/r/card.json ``` ## Usage ```tsx import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from '#app/ui/card.tsx' ``` ```tsx Card Title Card Description Card Action

Card Content

Card Footer

``` ## Composition Use the following composition to build a `Card`: ```tsx Card ├── CardHeader │ ├── CardTitle │ ├── CardDescription │ └── CardAction ├── CardContent └── CardFooter ``` ## Examples ### With Form ```tsx import { css } from 'remix/component' import { Button } from '#app/ui/button.tsx' import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '#app/ui/card.tsx' import { Input } from '#app/ui/input.tsx' import { Label } from '#app/ui/label.tsx' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '#app/ui/select.tsx' const field = css({ display: 'flex', flexDirection: 'column', gap: '0.75rem' }) export function CardWithForm() { return () => ( Create project Deploy your new project in one-click.
) } ``` ## API Reference ### Card The root container for card content. | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### CardHeader Holds the title, description, and optional action. | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### CardTitle The card title. | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### CardDescription Helper text under the title. | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### CardAction Places content in the top-right of the header (for example, a button or a badge). | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### CardContent The main card body. | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### CardFooter Actions and secondary content at the bottom of the card. | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | # Checkbox A control that allows the user to toggle between checked and not checked. ```tsx import { css } from 'remix/component' import { Checkbox } from '#app/ui/checkbox.tsx' import { Label } from '#app/ui/label.tsx' const stackStyles = css({ display: 'flex', flexDirection: 'column', gap: '1.5rem' }) const rowCenterStyles = css({ display: 'flex', alignItems: 'center', gap: '0.75rem' }) const rowStartStyles = css({ display: 'flex', alignItems: 'flex-start', gap: '0.75rem' }) const textStackStyles = css({ display: 'grid', gap: '0.5rem' }) const mutedStyles = css({ fontSize: '0.875rem', lineHeight: 'calc(1.25 / 0.875)', color: 'var(--muted-foreground)', }) const cardStyles = css({ display: 'flex', alignItems: 'flex-start', gap: '0.75rem', borderRadius: 'var(--radius)', borderWidth: '1px', padding: '0.75rem', '&:hover': { backgroundColor: 'color-mix(in oklab, var(--accent) 50%, transparent)' }, '&:has([aria-checked="true"])': { borderColor: 'oklch(54.6% 0.245 262.881)', backgroundColor: 'oklch(97% 0.014 254.604)', }, '.dark &:has([aria-checked="true"])': { borderColor: 'oklch(37.9% 0.146 265.522)', backgroundColor: 'oklch(28.2% 0.091 267.935)', }, }) const blueCheckboxStyles = css({ '&[data-state="checked"]': { borderColor: 'oklch(54.6% 0.245 262.881)', backgroundColor: 'oklch(54.6% 0.245 262.881)', color: 'white', }, '.dark &[data-state="checked"]': { borderColor: 'oklch(48.8% 0.243 264.376)', backgroundColor: 'oklch(48.8% 0.243 264.376)', }, }) const cardTextStyles = css({ display: 'grid', gap: '0.375rem', fontWeight: 400 }) const cardTitleStyles = css({ fontSize: '0.875rem', lineHeight: 1, fontWeight: 500 }) export function CheckboxDemo() { return () => (

By clicking this checkbox, you agree to the terms and conditions.

) } ``` ## Installation ```bash npx shadcn@latest add https://www.shadcn-remix.com/r/checkbox.json ``` ## Usage ```tsx import { Checkbox } from '#app/ui/checkbox.tsx' ``` ```tsx ``` ## Examples ### Disabled Use the `disabled` prop to prevent interaction and add the `data-disabled` attribute to the `` component for disabled styles. ```tsx import { css } from 'remix/component' import { Checkbox } from '#app/ui/checkbox.tsx' const rowStyles = css({ display: 'flex', alignItems: 'center', '& > :not(:last-child)': { marginInlineEnd: '0.5rem' }, }) const labelStyles = css({ fontSize: '0.875rem', lineHeight: 1, fontWeight: 500, '.peer:disabled ~ &': { cursor: 'not-allowed', opacity: 0.7 }, }) export function CheckboxDisabled() { return () => (
) } ``` ### With text ```tsx import { css } from 'remix/component' import { Checkbox } from '#app/ui/checkbox.tsx' const rowStyles = css({ display: 'flex', gap: '0.5rem' }) const textStyles = css({ display: 'grid', gap: '0.375rem', lineHeight: 1 }) const labelStyles = css({ fontSize: '0.875rem', lineHeight: 1, fontWeight: 500, '.peer:disabled ~ &': { cursor: 'not-allowed', opacity: 0.7 }, }) const mutedStyles = css({ fontSize: '0.875rem', lineHeight: 'calc(1.25 / 0.875)', color: 'var(--muted-foreground)', }) export function CheckboxWithText() { return () => (

You agree to our Terms of Service and Privacy Policy.

) } ``` ## API Reference ### Checkbox A control that allows the user to toggle between checked and not checked. Renders a ` ) } ``` ## Installation ```bash npx shadcn@latest add https://www.shadcn-remix.com/r/dialog.json ``` ## Usage ```tsx import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from '#app/ui/dialog.tsx' ``` ```tsx Open Are you absolutely sure? This action cannot be undone. This will permanently delete your account and remove your data from our servers. ``` ## Examples ### Custom Close Button Replace the default close control with your own button. ```tsx import { css } from 'remix/component' import { buttonVariants } from '#app/ui/button.tsx' import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from '#app/ui/dialog.tsx' import { Input } from '#app/ui/input.tsx' import { Label } from '#app/ui/label.tsx' const srOnly = css({ position: 'absolute', width: '1px', height: '1px', padding: 0, margin: '-1px', overflow: 'hidden', clip: 'rect(0, 0, 0, 0)', whiteSpace: 'nowrap', borderWidth: 0, }) export function DialogCloseButton() { return () => ( Share Share link Anyone who has this link will be able to view this.
Close
) } ``` ## API Reference ### Dialog | Prop | Type | Default | | --- | --- | --- | | `open` | `boolean` | - | | `defaultOpen` | `boolean` | - | | `onOpenChange` | `((open: boolean) => void)` | - | ### DialogTrigger | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### DialogPortal Renders the overlay and content in a native modal ``. The browser places it in the top layer, traps focus, makes the rest of the page inert, and supports Escape to dismiss. The dialog stays open until both exit animations finish. | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### DialogClose | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### DialogOverlay | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### DialogContent | Prop | Type | Default | | --- | --- | --- | | `showCloseButton` | `boolean` | `true` | | `mix` | `MixValue` | - | ### DialogHeader | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### DialogFooter | Prop | Type | Default | | --- | --- | --- | | `showCloseButton` | `boolean` | `false` | | `mix` | `MixValue` | - | ### DialogTitle | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | ### DialogDescription | Prop | Type | Default | | --- | --- | --- | | `mix` | `MixValue` | - | # Dropdown Menu Displays a menu to the user — such as a set of actions or functions — triggered by a button. ```tsx import { css } from 'remix/component' import { buttonVariants } from '#app/ui/button.tsx' import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from '#app/ui/dropdown-menu.tsx' export function DropdownMenuDemo() { return () => ( Open My Account Profile ⇧⌘P Billing ⌘B Settings ⌘S Keyboard shortcuts ⌘K Team Invite users Email Message More... New Team ⌘+T GitHub Support API Log out ⇧⌘Q ) } const w56 = css({ width: '14rem' }) ``` ## Installation ```bash npx shadcn@latest add https://www.shadcn-remix.com/r/dropdown-menu.json ``` ## Usage ```tsx import { buttonVariants } from '#app/ui/button.tsx' import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from '#app/ui/dropdown-menu.tsx' ``` ```tsx Open My Account Profile Billing Team Subscription ``` ## Examples ### Checkboxes Use `DropdownMenuCheckboxItem` for toggles. ```tsx import { css, type Handle } from 'remix/component' import { buttonVariants } from '#app/ui/button.tsx' import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from '#app/ui/dropdown-menu.tsx' export function DropdownMenuCheckboxes(handle: Handle) { let showStatusBar = true let showActivityBar = false let showPanel = false return () => ( Open Appearance { showStatusBar = checked handle.update() }} > Status Bar { showActivityBar = checked handle.update() }} disabled > Activity Bar { showPanel = checked handle.update() }} > Panel ) } const w56 = css({ width: '14rem' }) ``` ### Radio Group Use `DropdownMenuRadioGroup` for exclusive choices. ```tsx import { css, type Handle } from 'remix/component' import { buttonVariants } from '#app/ui/button.tsx' import { DropdownMenu, DropdownMenuContent, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, } from '#app/ui/dropdown-menu.tsx' export function DropdownMenuRadioGroupExample(handle: Handle) { let position = 'bottom' return () => ( Open Panel Position { position = value handle.update() }} > Top Bottom Right ) } const w56 = css({ width: '14rem' }) ``` ### Dialog ```tsx import { css, type Handle } from 'remix/component' import { Button, buttonVariants } from '#app/ui/button.tsx' import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '#app/ui/dialog.tsx' import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuTrigger, } from '#app/ui/dropdown-menu.tsx' import { Field, FieldGroup, FieldLabel } from '#app/ui/field.tsx' import { MoreHorizontalIcon } from '#app/ui/icons.tsx' import { Input } from '#app/ui/input.tsx' import { Label } from '#app/ui/label.tsx' import { Textarea } from '#app/ui/textarea.tsx' const dialogWidth = css({ '@media (min-width: 40rem)': { maxWidth: '425px' } }) export function DropdownMenuDialog(handle: Handle) { let showNewDialog = false let showShareDialog = false return () => ( <> File Actions { showNewDialog = true handle.update() }} > New File... { showShareDialog = true handle.update() }} > Share... Download { showNewDialog = open handle.update() }} > Create New File Provide a name for your new file. Click create when you're done. File Name Cancel { showShareDialog = open handle.update() }} > Share File Anyone with the link will be able to view this file. Message (Optional)