UNPKG

976 BTypeScriptView Raw
1import * as React from 'react';
2type ClassNameConfiguration = {
3 /**
4 * If `true`, the components within the context will not have built-in classes applied.
5 */
6 disableDefaultClasses: boolean;
7};
8export interface ClassNameConfiguratorProps extends Partial<ClassNameConfiguration> {
9 children?: React.ReactNode;
10}
11/**
12 * @ignore - internal hook.
13 *
14 * Wraps the `generateUtilityClass` function and controls how the classes are generated.
15 * Currently it only affects whether the classes are applied or not.
16 *
17 * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.
18 */
19export declare function useClassNamesOverride(generateUtilityClass: (slot: string) => string): (slot: string) => string;
20/**
21 * Allows to configure the components within to not apply any built-in classes.
22 */
23export default function ClassNameConfigurator(props: ClassNameConfiguratorProps): React.JSX.Element;
24export {};