Control how your custom component for screen flows acts based on the flow runtime version with the new flowRole attribute. In your Lightning web component, create a property that has the attribute flowRole="flowRuntimeApiVersion". Then use the value of that property at runtime to execute conditional logic. Retain functionality in older flows while incorporating newer features in the same component.
How: Add the <property> tag as a child of the
<targetConfig targets="lightning__FlowScreen"> tag. The
<property> tag must include these attributes: a name of
your choosing, flowRole="flowRuntimeApiVersion", type="double",
and role="inputOnly".
<targetConfig targets="lightning__FlowScreen">
<property name="prop1" flowRole="flowRuntimeApiVersion" type="double" role="inputOnly" />
</targetConfig>