CSS Hooks
Documentation
Source on GitHub

Home > @css-hooks/core > Hooks

Hooks interface

Contains the css function used to define enhanced styles, along with the style sheet required to support it.

Signature:

export interface Hooks<HookName, CSSProperties> 

Properties

Property

Modifiers

Type

Description

css

CssFn<HookName, CSSProperties>

The css function used to define enhanced styles.

styleSheet

() => string

The style sheet required to support the configured hooks.