# Select > Dropdown select input for picking from a list of options, styled to match the ShellUI design system. Source: https://shellui.dev/docs/v0.4/components/form/select `Select` renders a styled native ` @(_framework ?? "Pick a framework...") Blazor Next.js Nuxt SvelteKit @code { private string? _framework; } ``` ### Bound to a model property ```razor
@code { private MyFormModel _form = new(); public class MyFormModel { public string? Role { get; set; } } } ``` ### With grouped items ```razor
@code { private string? _language; } ``` ### Pre-selected value ```razor
@code { private string _theme = "system"; } ``` ### Read the selected value ```razor

Selected: @_plan

@code { private string? _plan; private void OnPlanChanged() => Console.WriteLine($"Plan changed to {_plan}"); } ``` ## Migration from v0.2.x In v0.2.x `Select` was a single component with `Items` and `@bind-SelectedValue`. Replace it with the new compositional pattern: ```razor @* v0.2.x — OLD *@ @(_selected ?? "Pick one...") @foreach (var opt in _options) { @opt.Label } ``` ## API Reference ### `` | | `Class` | `string?` | `null` | Additional CSS classes | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | `` elements | | `Class` | `string?` | `null` | Additional CSS classes on the dropdown panel | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `Value` | `string` | — | The raw value submitted when this item is selected | | `ChildContent` | `RenderFragment` | — | Display label | | `Class` | `string?` | `null` | Additional CSS classes |