You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/components/src/components/Dropdown/Dropdown.metadata.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"category": "overlay",
3
3
"description": "A contextual action menu that opens relative to a trigger element. Use for lists of actions or navigation options that don't require value selection.",
4
-
"instructions": "Compose as Dropdown.Root > Dropdown.Trigger + Dropdown.Content > Dropdown.Item. Use Dropdown.Group to group related items — provide a heading prop for labeled groups. Use Dropdown.SubMenu > Dropdown.SubTrigger + Dropdown.SubContent for nested menus. Use Dropdown.Slot with name='left' or 'right' inside Dropdown.Item to add icon decorators. Use emphasis='danger' on Dropdown.Item for destructive actions. Use Select instead when users need to pick a value from a list.",
4
+
"instructions": "Compose as Dropdown.Root > Dropdown.Trigger + Dropdown.Content > Dropdown.Item. Use Dropdown.Group to group related items — provide a heading prop for labeled groups. Use Dropdown.SubMenu > Dropdown.SubTrigger + Dropdown.SubContent for nested menus. Use Dropdown.Slot with name='left' or 'right' inside Dropdown.Item to add icon decorators. Use Dropdown.Shortcut inside Dropdown.Item to display the keyboard shortcut for actions that have one (e.g. 'K + E', '⌘ + N') and set aria-keyshortcuts on the matching Dropdown.Item; register the actual key listener in the consuming app. Use emphasis='danger' on Dropdown.Item for destructive actions. Use Select instead when users need to pick a value from a list.",
0 commit comments