UNPKG

@appbuckets/react-ui

Version:
18 lines (17 loc) 574 B
import { SharedClassNamesAndProps } from './getSharedClassNames'; import { SplitStateClassName } from './splitStateClassName'; import { AppearanceProps } from '../generic'; /** * Export a function to use the correct * shared className, wrapped by a react useMemo */ export declare function useSharedClassName<P>( props: P ): Readonly<SharedClassNamesAndProps<P>>; /** * Export a function to split the state className * from component Props */ export declare function useSplitStateClassName<P extends AppearanceProps>( props: P ): Readonly<SplitStateClassName<P>>;