CSS Hooks
Documentation
Source on GitHub

Home > @css-hooks/core > ConditionHelpers > and

ConditionHelpers.and() method

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

Signature:

and(...conditions: Condition<HookName>[]): Condition<HookName>;

Parameters

Parameter

Type

Description

conditions

Condition<HookName>[]

**Returns:**

Condition<HookName>