Select

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

North America
Eastern Time (EST)
Central Time (CST)
Mountain Time (MST)
Pacific Time (PST)
Europe
Greenwich Mean Time (GMT)
Central European Time (CET)
Eastern European Time (EET)
Asia
Japan Standard Time (JST)
China Standard Time (CST)
India Standard Time (IST)

Installation

CLI

Install the component using the StarUI CLI:

star add select

Examples

Form Integration

Select with labels, helper text, and form submission

United States
United Kingdom
Canada
Australia
Germany
France
Japan

Select your country of residence

Popular
English
Spanish
Chinese
European
French
German
Italian
Other
Japanese
Korean
Arabic

We'll use this for communication

Product Filtering

Multi-select filtering system with active filter display

Product Filter

Find the perfect product for your needs

Electronics
Clothing
Books
Home & Garden
Sports
Under $25
$25 - $50
$50 - $100
$100 - $250
Over $250
Price: Low to High
Price: High to Low
Customer Rating
Newest First

Dependent Selects

Cascading selects that update based on parent selection

Location Selection

Choose your location details

United States
Canada
Mexico
California
Texas
New York
Florida
Ontario
Quebec
British Columbia
Alberta
Mexico City
Jalisco
Nuevo León
Veracruz

Location

Role Management

Manage multiple user roles with inline selects

User Management

Manage user roles and permissions

Viewer
Editor
Admin
Owner

Jane Smith

[email protected]

Viewer
Editor
Admin
Owner

Bob Wilson

[email protected]

Viewer
Editor
Admin
Owner

API Reference

Component Description
Select Main container managing selected state via Datastar signals
SelectTrigger Button that opens the dropdown menu
SelectValue Displays current selection or placeholder
SelectContent Dropdown panel listing available items
SelectItem Individual selectable option with value and label
SelectGroup Group related options for easier scanning
SelectLabel Label heading for a group of options
SelectWithLabel Convenience wrapper with label, helper, and error text