replace-node.astro 270 Bytes
---
import Children from './children.astro'

const { props: { Component, args, node, special, ...rest } } = Astro
---
{!special &&
<Component {...node.attributes} {...args}>
  <Children parent={node} children={node.children} special={special} {...rest}/>
</Component>
}