Skip to content

[docs] DropdownMenuTrigger example uses incorrect render prop[bug]: #11264

Description

@fahad4046566

Describe the bug

In the TableActions example, DropdownMenuTrigger uses render prop:

<DropdownMenuTrigger render={Open menu} />

But shadcn dropdown uses Radix UI, which uses asChild pattern. render prop doesn't work — it should be:

Open menu

Affected component/components

DropdownMenuTrigger

How to reproduce

Open menu

Codesandbox/StackBlitz link

No response

Logs

System Info

OS: Windows 11 Pro 23H2
Browser: Chrome 134.0.6998.178
Node: v24.14.0
npm: 10.9.2

Windows 10 / Chrome / Node.js 24

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions