radix-ui / primitives

Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
https://radix-ui.com/primitives
MIT License
14.82k stars 717 forks source link

selectable list component #2955

Open alissawix opened 2 weeks ago

alissawix commented 2 weeks ago

Feature request

Overview

basically the dropdown content as a standalone component. without the positioning and floating abilities.

Examples in other libraries

Who does this impact? Who is this for?

in many cases, we want to display a selectable list (single or multi selection) statically, without a trigger, but with keyboard navigation and such.

Additional context

it is possible with Radix currently but a bit ugly: I can use the Dropdown component and revert the content - data-radix-popper-content-wrapper styling (isn't pretty because it's a component I don't have direct access to) here is an example

And it's running more code than I actually need, which is never a good idea