CSS Hooks
Documentation
Source on GitHub

Home > @css-hooks/core > ConditionHelpers

ConditionHelpers interface

Helper functions used to construct advanced conditions.

Signature:

export interface ConditionHelpers<HookName> 

Methods

Method

Description

and(conditions)

Creates a condition that is true when all of the conditions passed as arguments are true.

not(condition)

Creates a condition that is true when the specified condition is false.

or(conditions)

Creates a condition that is true when any of the conditions passed as arguments is true.