Use Svelte Context API
Share data between parent and child components using setContext/getContext.
Insert label
Context API Prompt
Set up the Svelte context API to share data between components without prop drilling. Use setContext in the parent and getContext in children. Add TypeScript types for the context value, use a symbol or string key, and explain when to prefer context over stores or props.
Add this to your Facet Inserts in Crystl for one-click access.
Get Crystl