CSS Hooks
Documentation
Source on GitHub

Home > @css-hooks/core > Config

Config interface

Represents the configuration used to set up hooks.

Signature:

export interface Config<HooksConfig> 

Properties

Property

Modifiers

Type

Description

debug?

boolean

(Optional) Whether to enable debug mode.

fallback?

"revert-layer" | "unset"

(Optional) The fallback keyword to use when no other value is available. The revert-layer keyword is functionally the best option, but unset has better compatibility.

hooks

HooksConfig

The hooks available for use in conditional styles.

sort?

{ properties?: boolean; conditionalStyles?: boolean; }

(BETA) (Optional) Options for sorting declarations when multiple rules are passed to the css function.