BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/tdds/dropdown-menu

Dropdown Menu

tdds/dropdown-menu
FreeComponent

Context menu dropdown

Install it

npx shadcn@latest add https://raw.githubusercontent.com/gjohnsx/ttb-label-verification/main/tdds-registry/public/r/dropdown-menu.json

Source

registry/ui/dropdown-menu.tsxraw.githubusercontent.com/gjohnsx/ttb-label-verification/main/tdds-registry/public/r/dropdown-menu.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"
5
6import { cn } from "@/lib/utils"
7import { CheckIcon, ChevronRightIcon } from "lucide-react"
8
9function DropdownMenu({
10 ...props
11}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
12 return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />
13}
14
15function DropdownMenuPortal({
16 ...props
17}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {
18 return (
19 <DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />
20 )
21}
22
23function DropdownMenuTrigger({
24 ...props
25}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {
26 return (
27 <DropdownMenuPrimitive.Trigger
28 data-slot="dropdown-menu-trigger"
29 {...props}
30 />
31 )
32}
33
34function DropdownMenuContent({
35 className,
36 align = "start",
37 sideOffset = 4,
38 ...props
39}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {
40 return (
41 <DropdownMenuPrimitive.Portal>
42 <DropdownMenuPrimitive.Content
43 data-slot="dropdown-menu-content"
44 sideOffset={sideOffset}
45 align={align}
46 className={cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 p-1 shadow-md ring-1 duration-100 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto data-[state=closed]:overflow-hidden", className )}
47 {...props}
48 />
49 </DropdownMenuPrimitive.Portal>
50 )
51}
52
53function DropdownMenuGroup({
54 ...props
55}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {
56 return (
57 <DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />
58 )
59}
60
61function DropdownMenuItem({
62 className,
63 inset,
64 variant = "default",
65 ...props
66}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
67 inset?: boolean
68 variant?: "default" | "destructive"
69}) {
70 return (
71 <DropdownMenuPrimitive.Item
72 data-slot="dropdown-menu-item"
73 data-inset={inset}
74 data-variant={variant}
75 className={cn(
76// … truncated

What it pulls in

npm packages

  • lucide-react
  • radix-ui

Other registry items

  • utils

Files it writes

  • registry/ui/dropdown-menu.tsx

Facts

Registry
tdds
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

icy-river-012b1601e.6.azurestaticapps.net gjohnsx/ttb-label-verification on GitHub Raw registry item This item as JSON

More from tdds

All 43 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordiontddsComponentsFree2 deps
AlertalerttddsComponentsFree1 dep
Alert Dialogalert-dialogtddsComponentsFree1 dep
AvataravatartddsComponentsFree1 dep
BadgebadgetddsComponentsFree1 dep
BreadcrumbbreadcrumbtddsComponentsFree2 deps
ButtonbuttontddsComponentsFree2 deps
Button Groupbutton-grouptddsComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex