{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "code-editor-demo", "type": "registry:ui", "title": "Code Editor Demo", "description": "Demo showing an animated code editor.", "registryDependencies": [ "https://animate-ui.com/r/code-editor" ], "files": [ { "path": "registry/demo/components/code-editor/index.tsx", "content": "import ReactIcon from '@/components/icons/react-icon';\nimport { CodeEditor } from '@/components/animate-ui/components/code-editor';\n\nexport const CodeEditorDemo = () => {\n return (\n }\n duration={15}\n delay={0.5}\n copyButton\n >\n {`'use client';\n\nimport * as React from 'react';\n\ntype MyComponentProps = {\n myProps: string;\n} & React.HTMLAttributes;\n\nconst MyComponent = React.forwardRef(\n ({ myProps, ...props }, ref) => {\n return (\n
\n

My Component

\n
\n );\n },\n);\nMyComponent.displayName = 'MyComponent';\n\nexport { MyComponent, type MyComponentProps };`}\n \n );\n};\n", "type": "registry:ui", "target": "components/animate-ui/demo/components/code-editor.tsx" } ] }