triggerreq- Type
ReactNode- Default
- -
- Description
- Interactive focus target button triggering popup dropdowns.
Search for a command to run...
Components / Overlay
கீழிறங்கு பட்டியல்
Dropdown menus present a list of actions or options triggered by clicking a button. Use them for user account menus, row actions in tables, and grouped commands.
கீழிறங்கு பட்டியல்கள் ஒரு பொத்தானை கிளிக் செய்வதால் தூண்டப்படும் செயல்களின் பட்டியலை காட்டுகின்றன.
4 parts documented for implementation and review.
<button>Interactive element that opens the menu on click. Receives aria-haspopup=menu and aria-expanded automatically. Can wrap any element via asChild. Maintains trigger focus when menu closes.
<span>Section header label for grouping related items. Renders in text-xs muted-foreground. Not focusable or clickable. Use for organizing items — e.g., Actions, Settings, Danger zone.
<div>Actionable menu option with role=menuitem. Supports left-positioned icons (h-4 w-4), right-aligned keyboard shortcuts, disabled state, and destructive variant for dangerous actions.
<div>Thin h-px bg-border line with role=separator. Visually groups related items — e.g., separating Edit/Copy from Delete.
triggerreqReactNode| Prop | Type | Default | Description |
|---|---|---|---|
triggerreq | ReactNode | - | Interactive focus target button triggering popup dropdowns. |
Mark delete or remove actions with the destructive item variant so users immediately recognize the risk before clicking.
நீக்கும் செயல்களை சிவப்பு நிறத்தில் காட்டி பயனர் ஆபத்தை உடனே அறிய உதவுங்கள்.
Flat dropdowns with many items are hard to scan — use separators and labels to group related actions.
பல உருப்படிகள் உள்ள தட்டையான பட்டியல் படிக்க கடினமாக இருக்கும் — குழுக்களாக தொகுக்கவும்.
Display keyboard shortcuts in the menu using DropdownMenuShortcut so power users can work faster.
வல்லுநர் பயனர்கள் வேகமாக பணி செய்ய விசைப்பலகை குறுக்குவழிகளை பட்டியலில் காட்டவும்.
DropdownMenu is for actions (do something), not value selection — use Select for choosing from a list of values.
DropdownMenu செயல்களுக்கானது — மதிப்பை தேர்வு செய்ய Select பயன்படுத்தவும்.