Dollie Editor SDK guide
Author a Catalog
Turn a coherent set of React components into editor content.
Begin with a small, coherent set of components. A useful catalog is not the largest collection; it is a reliable design vocabulary for a particular product or visual system.
Authoring sequence
- Choose production-ready React components.
- Make their content props serializable and structured.
- Register sections and elements under a unique source prefix.
- Generate field definitions from TypeScript props.
- Add only the overrides types cannot express.
- Test editing and published rendering.
- Add concise usage guidance and starter templates.
Section quality checklist
A section should:
- look complete with defaults;
- respond correctly at supported widths;
- expose only meaningful content controls;
- remain on-brand across reasonable input;
- avoid hidden data fetching;
- handle empty or optional content safely.
Design guardrails in the component
Do not ask a prompt to preserve constraints that the component can guarantee.
Keep typography scale, spacing, grid behavior, maximum item counts, and layout variants inside the component contract. Let fields expose deliberate choices rather than raw styling freedom.
Test with imperfect content
Try short and long text, missing optional fields, reordered arrays, different element choices, and unsupported proposals. The component should remain useful without relying on a perfect AI response.