The starter file is usually src/components/ui/component.tsx. A component file
named after the final slug also works. The published snapshot includes the
primary component, demos, supported source files under src/components,
src/hooks, and src/lib, plus the recognized global CSS files
src/index.css, src/globals.css, src/app.css, and global.css.
A demo that declares one module-level const settings = { … } object and takes
it as props gets a live controls panel in its preview, and its “Copy code”
carries whatever the visitor tuned. See
Demo Controls for the contract and the limits.
Preview assets are selected in the Demos step rather than stored beside the
source files. Every demo needs 1–5 tags and a cover image. A demo video is
optional.