Prompt Frontend

Improve Component Composition

Refactor Svelte components using slots, snippets, or render delegation.

sveltefrontend
Insert label Composition
Prompt

Refactor this Svelte component to improve composition. Use slots (Svelte 4) or snippet blocks (Svelte 5) to make it flexible and reusable. Add named slots for customizable sections, provide slot props for data passing, and add sensible fallback content where appropriate.

Add this to your Facet Inserts in Crystl for one-click access.

Get Crystl