Homecomponentscontrol-flow
Match
A control-flow to pick one of the several branches.
Alpha
This component is in development. There could be breaking changes made to it in a non-major release of Prism. Please use with caution.Use Match and Case to display one of many matching conditions. Use Else to show a fallback.
API
Match
children
Required
Element | Element[]
Case
when
Required
true
false
children
Required
ReactNode
Else
children
Required
ReactNode