Files
shopify-react-editor-template/components/shopify/search-results.config.tsx
T
Rami BitarandClaude Opus 5 69ca137c7d Rename block .editor files to .config
Also drop the color and leftSideBarVisible overrides from PageEditor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014xjLo7mFxZXfPDCHuKX4Dz
2026-08-29 11:10:24 -04:00

26 lines
717 B
TypeScript

import { ComponentConfig } from '@reacteditor/core';
import { Search } from 'lucide-react';
import SearchResults from '@/components/shopify/search-results';
export type SearchResultsBlockProps = {
title?: string;
placeholder?: string;
};
const searchResultsEditor: ComponentConfig<SearchResultsBlockProps> = {
label: 'Search results',
icon: <Search size={16} />,
category: 'commerce',
defaultProps: {
title: 'Search',
placeholder: 'Search products',
},
fields: {
title: { label: 'Title', type: 'text', contentEditable: true },
placeholder: { label: 'Search placeholder', type: 'text' },
},
render: (props) => <SearchResults {...props} />,
};
export default searchResultsEditor;