Skip to main content

Interface: WhenProps<Shape>

Type parameters​

NameType
Shapeextends Object

Properties​

children​

• children: ReactNode

Any node to be rendered when the predicate matches.

Defined in​

src/components/When/When.tsx:9

Methods​

predicate​

â–¸ predicate(value?): boolean

Condition to be satisfied for the children to be rendered. If the value prop was passed to its parent, then this predicate will expose it as its first parameter.

Parameters​

NameType
value?Shape

Returns​

boolean

Defined in​

src/components/When/When.tsx:13