v0.20.230 - 6.2 / 5.8

<Dynamic .../>

Renders a component chosen at runtime. The component prop is read once when <Dynamic/> is created β€” it is not reactive, so passing a signal or a function that returns a component won't swap the rendered output. To drive the component choice reactively, mount <Dynamic/> inside a Show or Switch that toggles which one is shown. All other props are forwarded to the rendered component. For the JavaScript equivalent see Component.

# Attributes

nametypedescription
componenttagName | fn | Pota class | Elementwhat to render β€” read once, not reactive
…restanyforwarded as props to the rendered component

# Using dynamic

Simple test