Files
2026-08-09 16:00:10 -04:00

29 lines
950 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { ComponentConfig } from '@reacteditor/core';
import { Text } from 'lucide-react';
import ContentSection, {
type ContentSectionProps,
} from '@/components/shopify/content-section';
const contentSectionEditor: ComponentConfig<ContentSectionProps> = {
label: 'Content section',
icon: <Text size={16} />,
category: 'content',
defaultProps: {
eyebrow: '',
heading: 'About',
body: 'Tell your stores story here.\n\nBlank lines start a new paragraph.',
imageUrl: '',
imageAlt: '',
},
fields: {
eyebrow: { label: 'Eyebrow', type: 'text', contentEditable: true },
heading: { label: 'Heading', type: 'text', contentEditable: true },
body: { label: 'Body', type: 'textarea', contentEditable: true },
imageUrl: { label: 'Image', type: 'image' },
imageAlt: { label: 'Image alt text', type: 'text' },
},
render: (props) => <ContentSection {...props} />,
};
export default contentSectionEditor;