Select

Displays a list of options for the user to pick from, triggered by a button.

Installation

$npx maddex add Select

Basic

Start with the same simple trigger-and-list structure used in the shadcn Select docs when you only need an uncontrolled choice.

Preview

        
            
        
    

Controlled

Use value and on-value-change when surrounding page state needs to react to the current choice.

Preview

        
            
        
    

Scrollable

Add labels, separators, and a longer option list when the menu needs structured groups and built-in scrolling.

Preview