@microsoft/fast-foundation > defineDesignSystemProvider

defineDesignSystemProvider() function

Defines a design-system-provider custom element, registering the tag-name so that the element can be property resolved by DesignSystemConsumers.

Signature:
export declare function defineDesignSystemProvider(nameOrDef: string | PartialFASTElementDefinition): <T extends typeof DesignSystemProvider>(providerCtor: T) => void;

Parameters

ParameterTypeDescription
nameOrDefstring | PartialFASTElementDefinitionthe name or element definition
Returns:

<T extends typeof DesignSystemProvider>(providerCtor: T) => void