CSS Hooks
Documentation
Source on GitHub

Home > @css-hooks/core > createHooksSystem

createHooksSystem() function

Creates a flavor of CSS Hooks tailored to a specific app framework.

Signature:

export declare function createHooksSystem<CSSProperties extends { [P: string]: any; } = Record<string, unknown>, CSSPropertyConflicts extends object = object>(stringify?: StringifyFn): HooksSystem<CSSProperties, CSSPropertyConflicts>;

Parameters

Parameter

Type

Description

stringify

StringifyFn

(Optional) The function used to stringify values when merging override styles

Returns:

HooksSystem<CSSProperties, CSSPropertyConflicts>

The functions used to bootstrap CSS Hooks within an app or component library

Remarks

Primarily for internal use, advanced use cases, or when an appropriate framework integration is not provided