Option
An implementation of an option.
The <FluentOption>
component is meant to only be used within a components such as <FluentSelect>
,
<FluentCombobox>
or <FluentListbox>
.
<FluentOption>
wraps the <fluent-option>
element, a web component implementation of a listbox option leveraging the Fluent UI design system.
Examples
Default
Download:
States
Disabled
Selected
Download:
Icons
With icons
Download:
Documentation
FluentOption<TOption> Class
Parameters
Name | Type | Default | Description |
---|---|---|---|
ChildContent | RenderFragment? | Gets or sets the content to be rendered inside the component. | |
Disabled | bool | False | Gets or sets a value indicating whether the element is disabled. |
Selected | bool | False | Gets or sets a value indicating whether the element is selected. |
Value | string? | Gets or sets the value of this option. |
EventCallbacks
Name | Type | Description |
---|---|---|
OnSelect | EventCallback<string> | Called whenever the selection changed. |
SelectedChanged | EventCallback<bool> | Called whenever the selection changed. |
Methods
Name | Parameters | Type | Description |
---|---|---|---|
OnClickHandlerAsync | Task |