pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
import * as React from 'react';
|
||||
type ClassNameConfiguration = {
|
||||
/**
|
||||
* If `true`, the components within the context will not have built-in classes applied.
|
||||
*/
|
||||
disableDefaultClasses: boolean;
|
||||
};
|
||||
export interface ClassNameConfiguratorProps extends Partial<ClassNameConfiguration> {
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
/**
|
||||
* @ignore - internal hook.
|
||||
*
|
||||
* Wraps the `generateUtilityClass` function and controls how the classes are generated.
|
||||
* Currently it only affects whether the classes are applied or not.
|
||||
*
|
||||
* @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.
|
||||
*/
|
||||
export declare function useClassNamesOverride(generateUtilityClass: (slot: string) => string): (slot: string) => string;
|
||||
/**
|
||||
* Allows to configure the components within to not apply any built-in classes.
|
||||
*/
|
||||
export declare function ClassNameConfigurator(props: ClassNameConfiguratorProps): React.JSX.Element;
|
||||
export {};
|
||||
Reference in new issue
Block a user