Initial react editor Next.js template

This commit is contained in:
Rami Bitar
2026-08-29 15:45:18 -04:00
commit 6e5783e644
32 changed files with 4192 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import type { ComponentConfig } from '@reacteditor/core';
import { SquareDashed } from 'lucide-react';
import Starter, { type StarterProps } from './starter';
const starterConfig: ComponentConfig<StarterProps> = {
label: 'Starter',
icon: <SquareDashed size={16} />,
category: 'content',
defaultProps: {
logoUrl: '/next.svg',
message: 'To edit this page navigate to /editor.',
},
fields: {
logoUrl: { label: 'Logo', type: 'image' },
message: { label: 'Message', type: 'text', contentEditable: true },
},
render: (props) => <Starter {...props} />,
};
export default starterConfig;