Code Tabs Demo

PreviousNext

Demo showing a code tabs.

Docs
animate-uiui

Preview

Loading preview…
registry/demo/components/animate/code-tabs/index.tsx
import { CodeTabs } from '@/components/animate-ui/components/animate/code-tabs';

const CODES = {
  Cursor: `// Copy and paste the code into .cursor/mcp.json
{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["-y", "shadcn@canary", "registry:mcp"],
      "env": {
        "REGISTRY_URL": "@animate-ui/registry.json"
      }
    }
  }
}`,
  Windsurf: `// Copy and paste the code into .codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["-y", "shadcn@canary", "registry:mcp"],
      "env": {
        "REGISTRY_URL": "@animate-ui/registry.json"
      }
    }
  }
}`,
};

export const CodeTabsDemo = () => {
  return <CodeTabs lang="json" codes={CODES} />;
};

Installation

npx shadcn@latest add @animate-ui/demo-components-animate-code-tabs

Usage

import { DemoComponentsAnimateCodeTabs } from "@/components/ui/demo-components-animate-code-tabs"
<DemoComponentsAnimateCodeTabs />