What problem does it solve?
Scaffold speed and consistency for adding new deco.cx Sections by providing a ready-to-use boilerplate that enforces server-side rendering with Preact and Tailwind, typed props, and optional loaders.
This helps teams avoid boilerplate drift and ensures new sections follow the same structure and conventions.
Core Features & Use Cases
- Generate a compliant section file (sections/MySection.tsx) with proper Tailwind usage, server-side rendering, and TypeScript props.
- Support optional islands for client-side behavior and optional loaders for data fetching.
- Use in scenarios where a new storefront section needs to be quickly added to a Deco storefront, tested, and deployed with consistent structure and conventions.
Quick Start
Use this scaffold to create a new deco.cx Section by providing the desired section name and file path; the system will generate the TSX section and required scaffolding following the conventions.