@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.
6 lines • 493 B
TypeScript
export type StateAttributesMapping<State> = { [Property in keyof State]?: (state: State[Property]) => Record<string, string> | null };
/**
* @deprecated Use `StateAttributesMapping` instead.
*/
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?: StateAttributesMapping<State>): Record<string, string>;