mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
- Fix 3D card component demos with proper content in both default and new-york themes - Update all 170+ CLI installation commands from 'npx hanzo-ui@latest' to 'npx @hanzo/ui@latest' - Update CLAUDE.md to reflect correct package naming - Rebuild component registry with updated demos
78 lines
1.2 KiB
Plaintext
78 lines
1.2 KiB
Plaintext
---
|
|
title: Code Tabs
|
|
description: Code Tabs component for Hanzo UI
|
|
component: true
|
|
---
|
|
|
|
<ComponentPreview name="code-tabs-demo" />
|
|
|
|
## Installation
|
|
|
|
<Tabs defaultValue="cli">
|
|
|
|
<TabsList>
|
|
<TabsTrigger value="cli">CLI</TabsTrigger>
|
|
<TabsTrigger value="manual">Manual</TabsTrigger>
|
|
</TabsList>
|
|
|
|
<TabsContent value="cli">
|
|
|
|
<Steps>
|
|
|
|
<Step>Run the following command:</Step>
|
|
|
|
```bash
|
|
npx @hanzo/ui@latest add code-tabs
|
|
```
|
|
|
|
</Steps>
|
|
|
|
</TabsContent>
|
|
|
|
<TabsContent value="manual">
|
|
|
|
<Steps>
|
|
|
|
<Step>Copy and paste the following code into your project</Step>
|
|
|
|
<ComponentSource name="code-tabs" />
|
|
|
|
<Step>Update the import paths to match your project setup</Step>
|
|
|
|
</Steps>
|
|
|
|
</TabsContent>
|
|
|
|
</Tabs>
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import { Code Tabs } from "@/registry/default/ui/code-tabs"
|
|
|
|
export default function Example() {
|
|
return <Code Tabs />
|
|
}
|
|
```
|
|
|
|
## Examples
|
|
|
|
### Default
|
|
|
|
<ComponentPreview name="code-tabs-demo" />
|
|
|
|
## API
|
|
|
|
Documentation coming soon.
|
|
|
|
## Features
|
|
|
|
- Built with Radix UI and Tailwind CSS
|
|
- Fully accessible and keyboard navigable
|
|
- Customizable styling with CSS variables
|
|
- TypeScript support
|
|
|
|
## Notes
|
|
|
|
For more examples and advanced usage, see the [examples](/examples).
|