@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
5 lines (4 loc) • 303 B
TypeScript
export type CustomStyleHookMapping<State> = {
[Property in keyof State]?: (state: State[Property]) => Record<string, string> | null;
};
export declare function getStyleHookProps<State extends Record<string, any>>(state: State, customMapping?: CustomStyleHookMapping<State>): Record<string, string>;