<IfFieldValue>
Conditional rendering of field values.
This component allows you to conditionally render based on the existence of a field value.
Props
Prop Name | Prop Type | Description |
| Node | Any number of components. |
| Node | Fallback component that displays when. This will change in a future version. |
| Function | Callback function that gives you the |
| String | The base field name without a |
When to use?
This is a niche component. This is probably most useful in complex forms:
You want to show a
<FieldValue>
, but have it wrapped in some styled elements, so you only want to show it when a value exists.You want to show other fields only when certain fields have values.
Last updated