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>;
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.