default

fun default(component: JoyDomComponent)

Register a placeholder rendered for any custom type that has no registered component. Without a default, an unregistered custom type renders nothing — the node and its whole subtree are hidden. The placeholder gets the normal ComponentScope, so default { Children() } reproduces rendering the node's children, while default { /* stub using node.type*/ } shows a fixed placeholder. Applies only to unregistered, non-built-in types — built-ins keep their own renderer.