Template

A utility component that renders children into an HTML string inside a template tag.

The content below is rendered inside a <template> tag and won't be visible. Inspect the DOM to see it.

<Template /> rendered here

Installation

bunx --bun shadcn@latest add undefined/r/Template.json

Usage

import { Template } from "@/components/Template"

<Template>
  <div>Content to be templated</div>
</Template>

API Reference

PropTypeDefaultDescription
childrenReactNode-Content to render inside the template.