Initial react editor website template

This commit is contained in:
Rami Bitar
2026-08-29 14:03:50 -04:00
commit 3e072967e6
61 changed files with 7041 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import type { ComponentConfig } from '@reacteditor/core';
import { PanelBottom } from 'lucide-react';
import Footer, { type FooterProps } from './footer';
const footerConfig: ComponentConfig<FooterProps> = {
label: 'Footer', icon: <PanelBottom size={16} />, category: 'navigation', global: true,
defaultProps: {
siteName: 'Your Company', logoUrl: '', description: 'Add a short description of your business.',
links: [{ label: 'Features', url: '/#features' }, { label: 'Pricing', url: '/#pricing' }, { label: 'Resources', url: '/#resources' }, { label: 'Contact', url: '/contact' }],
socialLinks: [{ label: 'LinkedIn', url: '#' }, { label: 'Instagram', url: '#' }],
copyright: '© 2026 Your Company. All rights reserved.', showThemeToggle: 'yes',
},
fields: {
siteName: { label: 'Site name', type: 'text', contentEditable: true },
logoUrl: { label: 'Logo', type: 'image' },
description: { label: 'Description', type: 'textarea', contentEditable: true },
links: { label: 'Links', type: 'array', defaultItemProps: { label: 'Link', url: '/' }, getItemSummary: (item) => item?.label || 'Link', arrayFields: { label: { label: 'Label', type: 'text', contentEditable: true }, url: { label: 'URL', type: 'text' } } },
socialLinks: { label: 'Social links', type: 'array', defaultItemProps: { label: 'Network', url: '#' }, getItemSummary: (item) => item?.label || 'Social link', arrayFields: { label: { label: 'Label', type: 'text', contentEditable: true }, url: { label: 'URL', type: 'text' } } },
copyright: { label: 'Copyright', type: 'text', contentEditable: true },
showThemeToggle: { label: 'Theme toggle', type: 'radio', options: [{ label: 'Show', value: 'yes' }, { label: 'Hide', value: 'no' }] },
},
render: (props) => <Footer {...props} />,
};
export default footerConfig;