Skip to content
  • This project
    • Loading...
  • Sign in

brainfood / astro-wt

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • astro-wt
  • lib
  • wrap-node.astro
  • Adam Heath's avatar
    Add ReplaceNode(similar to WrapNode), and change the name of the called · 4bd75132 ...
    4bd75132
    function to Component, from Wrapped.
    Adam Heath committed 2025-02-04 15:00:19 -0600
wrap-node.astro 174 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10
---
import Node from './node.astro'

const { props: { Component, args, special, ...rest } } = Astro
---
{!special &&
<Component {...args}>
  <Node {...rest}/>
</Component>
}