Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 790 Bytes

File metadata and controls

19 lines (14 loc) · 790 Bytes

7. Svelte Special Elements

7.A Slot

  • The slot element is used to define slots in a component’s template that can be filled with content from the component’s parent.

7.B Self

  • The self element is used to reference the component itself in its template.

7.C Component

  • The component element is used to dynamically render a component based on a given condition.

7.D Window

  • The window store is used to access the browser’s window object.

7.E Body

  • The body store is used to access the body element of the current document.