Code Snippet 2
- from @shadcncraft
A command or a short file, shown so it can be taken. Comes as an inline chip for code inside a sentence and as a block for code that stands on its own, with an optional filename header. Copying is one click and reports itself, and the block holds its shape whether the copy button rides in the header or beside the code.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @shadcncraft/code-snippet-2Component source
No live preview has been built for this component yet.
Registry dependencies1
- button
Packages0
No npm packages are installed with it.
