chrome:shell.skip

generated:catalog.entry.native-select.title

chrome:badge.deprecated

generated:catalog.entry.native-select.description

@xngui/components/native-select
@xngui/components/native-select

chrome:demo.section

chrome:demo.preview

demo-preview:native-select.native-hint

demo-preview:hints.category.navigation:
Tab↑ ↓
demo-preview:hints.category.pointer:
Scroll
demo-preview:hints.category.shortcuts:
Enter / SpaceEscape
demo-preview:projection.slots-label:
[xStart] ng-content [xEnd]
import { Component } from '@angular/core';
import { XForm } from '@xngui/components/form';
import { XFormField } from '@xngui/components/form-field';
import { XNativeSelect } from '@xngui/components/native-select';
 
@Component({
selector: 'app-example',
imports: [XForm, XFormField, XNativeSelect],
templateUrl: './native-select.component.html',
})
export class ExampleComponent {}

chrome:demo.events.title

chrome:demo.events.empty

chrome:demo.api.title

x-native-select

chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
size
XSize
—
Visual size tier — falls back to parent `x-form` then XConfigService when unset.
density
XDensity
—
Spacing offsets — orthogonal to `size`; falls back to parent `x-form` then XConfigService when unset.
look
XFormLook
—
Field chrome — outline, fill, flat, or none; falls back to parent `x-form` then XConfigService.
placeholder
string
''
Placeholder label for the empty option.
disabled
boolean
false
Kept in sync by `[formField]`; set directly for standalone use.
readonly
boolean
false
Prevents editing while keeping the control focusable.
invalid
boolean
false
Marks the control invalid — display timing defers to ancestor `x-form-field` when wrapped.
required
boolean
false
Sets the native `required` attribute and `aria-required`.
name
string
''
Form control name — used as `name` on the native element and for id fallback.
controlId
string
—
Native `id` on the control; falls back to `name`, then a generated id.