@fluentui/react-theme-provider
Version:
Fluent UI React theme provider component, hook, and theme related utilities.
15 lines (14 loc) • 517 B
TypeScript
import * as React from 'react';
import { ColorTokenSet } from '@fluentui/theme';
export { Theme, PartialTheme } from '@fluentui/theme';
/**
* Typing containing the definition for the `style` and `tokens` props that will be extended for the calculation of the
* style prop.
*/
export interface StyleProps<TTokens extends ColorTokenSet = ColorTokenSet> {
style?: React.CSSProperties;
tokens?: TTokens;
}
export interface StyleOptions<TProps> {
slotProps: ((props: TProps) => Record<string, object>)[];
}