Skip to main content
Version: 1.x

@microsoft/fast-components > fastOption

fastOption variable

A function that returns a ListboxOption registration for configuring the component with a DesignSystem. Implements listboxOptionTemplate

Signature:
fastOption: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
baseName: string;
template: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ViewTemplate<ListboxOption, any>, import("@microsoft/fast-foundation").ListboxOptionOptions>;
styles: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ElementStyles, import("@microsoft/fast-foundation").ListboxOptionOptions>;
}> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
baseName: string;
template: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ViewTemplate<ListboxOption, any>, import("@microsoft/fast-foundation").ListboxOptionOptions>;
styles: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ElementStyles, import("@microsoft/fast-foundation").ListboxOptionOptions>;
}, typeof ListboxOption>

Remarks

Generates HTML Element: <fast-option>