CodeBlock
- from @ouro
Code or a command on a muted surface in the theme's monospace font, with a caption and a button that copies it.
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 @ouro/code-blockComponent source
No live preview has been built for this component yet.
Registry dependencies8
- @ouro/copy-button
- @ouro/emoji
- @ouro/lib-class-name-check
- @ouro/lib-cn
- @ouro/lib-env
- @ouro/lib-refs
- @ouro/lib-scroll-fade
- @ouro/lib-use-dev-messages
Packages0
No npm packages are installed with it.