CSS Hooks
Documentation
Source on GitHub

Home > @css-hooks/core > CreateHooksFn

CreateHooksFn type

Represents the function used to define hooks and related configuration.

Signature:

export type CreateHooksFn<CSSProperties, CSSPropertyConflicts extends object = object> = <const ConfiguredHooks extends Hook[]>(...hooks: ConfiguredHooks) => Hooks<ConfiguredHooks, CSSProperties, CSSPropertyConflicts>;

References: Hook, Hooks

Remarks

When the registered hooks are known to include one or more flag:<name> values, the return type also exposes enable() and disable() functions restricted to their short names.