import ReactIcon from '@workspace/ui/components/icons/react-icon';
import { CodeEditor } from '@/registry/components/code-editor';
export const CodeEditorDemo = () => {
return (
}
duration={15}
delay={0.5}
copyButton
>
{`'use client';
import * as React from 'react';
type MyComponentProps = {
myProps: string;
} & React.HTMLAttributes;
const MyComponent = React.forwardRef(
({ myProps, ...props }, ref) => {
return (
);
},
);
MyComponent.displayName = 'MyComponent';
export { MyComponent, type MyComponentProps };`}
);
};