primereact
Version:
PrimeReact is an open source UI library for React featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
26 lines (22 loc) • 802 B
TypeScript
export interface ComponentHooks {
useMountEffect?(): void;
useUpdateEffect?(): void;
useUnmountEffect?(): void;
}
/**
* Custom hook to use to load style options for a component.
* @param {string} styles - The style text content.
* @param {boolean} isUnstyled - Flag removes component related styles in the core.
* @param config - The component configuration.
*/
export declare function useHandleStyle(styles: string, isUnstyled: () => boolean, config: { name: string; styled?: boolean; hostName?: string }): void;
export interface ComponentBasePassThroughOptions {
hooks?: ComponentHooks;
}
/**
* @todo Update all d.ts with it.
*/
export interface ComponentBasePassThroughMethodOptions<P = any, S = any> {
props?: P | undefined | null;
state?: S | undefined | null;
}