Code Example 2 - HTTP request examples with language tabs and copy
- from @shadcnblocks
This component provides a visual interface for displaying code examples of HTTP requests in multiple programming languages, including JavaScript, Python, and Go. It features a code block with selectable files, language switching options, and a button for copying code, making it ideal for educational or documentation purposes.
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 @shadcnblocks/code-example2Registry dependencies0
The CLI adds no other registry items with this one.
Packages0
No npm packages are installed with it.
