Interface: MatchProps<Shape>
Type parameters​
Name | Type |
---|---|
Shape | extends Object |
Properties​
children​
• children: _MatchChildren
<Shape
>
The patterns the value
prop should match. Can be represented as With
, When
, and Otherwise
.
Defined in​
src/components/Match/Match.tsx:22
firstMatch​
• Optional
firstMatch: boolean
Indicates whether anything that matches should render or only the first match.
Defined in​
src/components/Match/Match.tsx:24
value​
• Optional
value: Shape
Entry point to create a pattern-matching expression.
Defined in​
src/components/Match/Match.tsx:20