For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/dropdown.md.
v0.0.57
  • English
  • Dropdown

    Navigation@rockshin/tao-ui

    Opens a menu of actions or navigation choices from a trigger.

    When to use

    Use Dropdown for compact action sets that do not need to stay visible.

    Recommended

    • Order frequent actions first.
    • Use destructive styling only for destructive items.

    Avoid

    • Do not use Dropdown as a replacement for visible primary navigation.

    Examples

    API

    PropertyDescriptionTypeDefault Value
    childrenTrigger element (a single React element).ReactNode (Required)-
    triggerHow the menu opens. Defaults to ['click'].DropdownTrigger[] | undefined-
    placementDefaults to 'bottomLeft'. Ignored for contextMenu.DropdownPlacement | undefined-
    disabledWhether to disableboolean | undefined-
    arrowShow a pointing arrow on the menu. Defaults to false.boolean | undefined-
    classNameMerged onto the floating content.string | undefined-
    styleAdditional styleCSSProperties | undefined-
    PropertyDescriptionTypeDefault Value
    childrenMain button content.ReactNode-
    onClickMain button click handler.(() => void) | undefined-
    iconIcon for the trigger button. Defaults to an ellipsis.ReactNode-
    triggerHow the menu opens. Defaults to ['click'].DropdownTrigger[] | undefined-
    placementDefaults to 'bottomLeft'. Ignored for contextMenu.DropdownPlacement | undefined-
    disabledWhether to disableboolean | undefined-
    arrowShow a pointing arrow on the menu. Defaults to false.boolean | undefined-
    classNameMerged onto the floating content.string | undefined-
    styleAdditional styleCSSProperties | undefined-