DropdownMenu API
Every prop of the 15 parts DropdownMenu exports, generated from the package manifest.
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '@oceanic-hub/brand-system'- Layer
- core — shadcn-derived primitives.
- Exports
- DropdownMenu · DropdownMenuCheckboxItem · DropdownMenuContent · DropdownMenuGroup · DropdownMenuItem · DropdownMenuLabel · DropdownMenuPortal · DropdownMenuRadioGroup · DropdownMenuRadioItem · DropdownMenuSeparator · DropdownMenuShortcut · DropdownMenuSub · DropdownMenuSubContent · DropdownMenuSubTrigger · DropdownMenuTrigger
- Contract
- packages/brand-system/src/components/dropdown-menu.contract.test-d.ts
- Demos
- 7 on the DropdownMenu page — rendered live, hydrated
- Source
- packages/brand-system/src/components/dropdown-menu.tsx
Generated from manifest/component-manifest.json, so it cannot drift from the source. For what DropdownMenu is for, how it composes and what it looks like, see DropdownMenu.
DropdownMenu
Re-exported from @radix-ui/react-dropdown-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuCheckboxItem
Inherited from @radix-ui/react-dropdown-menu — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuContent
Inherited from @radix-ui/react-dropdown-menu — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuGroup
Re-exported from @radix-ui/react-dropdown-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuItem
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & { inset?: boolean }
Prop
Type
Also inherited from @radix-ui/react-dropdown-menu — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuLabel
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & { inset?: boolean }
Prop
Type
Also inherited from @radix-ui/react-dropdown-menu — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuPortal
Re-exported from @radix-ui/react-dropdown-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuRadioGroup
Re-exported from @radix-ui/react-dropdown-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuRadioItem
Inherited from @radix-ui/react-dropdown-menu — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuSeparator
Inherited from @radix-ui/react-dropdown-menu — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuShortcut
A styled <span> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.
DropdownMenuSub
Re-exported from @radix-ui/react-dropdown-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuSubContent
Inherited from @radix-ui/react-dropdown-menu — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuSubTrigger
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & { inset?: boolean }
Prop
Type
Also inherited from @radix-ui/react-dropdown-menu — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.
Prop
Type
DropdownMenuTrigger
Re-exported from @radix-ui/react-dropdown-menu. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.
Prop
Type