Homecomponentscontrol-flow

Show

A control-flow to show conditionally.

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 Show to conditionally show something.

Show Prices

Fallback

Use the fallback property to provide a fallback value when the condition is not met.

Show Prices
No prices to show

API

when
Required
The condition based on which content is shown.
true
false

children
Required
The content to show when condition is met.
ReactNode

fallback
Content to show when condition is not met.
ReactNode
Table of Contents