CSS Hooks
Documentation
Source on GitHub

Home > @css-hooks/core > CreateHooksResult

CreateHooksResult interface

An object containing the functions needed to support and use the configured hooks.

Signature:

export interface CreateHooksResult<S, CSSProperties>

Properties

Property

Modifiers

Type

Description

and

<C extends Condition<S>[]>(...conditions: C) => { and: C; }

Combines a list of conditions into a single condition which is true when all of the specified conditions are true.

not

<C extends Condition<S>>(condition: C) => { not: C; }

Negates a condition.

on

(condition: Condition<S>, style: CSSProperties) => EnhanceStyleFn<CSSProperties>

Enhances a style object with conditional styles.

or

<C extends Condition<S>[]>(...conditions: C) => { or: C; }

Combines a list of conditions into a single condition which is true when any of the specified conditions are true.

styleSheet

() => string

The style sheet required to support the configured hooks.