import{j as e}from"./index-bIIEL2MP.js";import{useMDXComponents as r}from"./index-CO-0pc0F.js";import{M as i}from"./index-Z-6k0Xrj.js";import{p as a}from"./docsPage-CT2vyZOj.js";import{H as o}from"./Highlight-rHebhLku.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iframe-CzjIX-qr.js";import"./index-aQYXhgXp.js";import"./index-DrFu-skq.js";function s(t){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",strong:"strong",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Guides/Bare minimum Svelte",parameters:{...a}}),` `,e.jsx(n.h1,{id:"introduction-to-svelte-components",children:"Introduction to Svelte components"}),` `,e.jsx(n.p,{children:"Svelte is a modern JavaScript framework for building parts of HTML pages. Components are the building blocks of Svelte pages, allowing you to create reusable and interactive parts of your page."}),` `,e.jsxs(n.p,{children:["Here's ",e.jsx(n.strong,{children:"the bare minimum"})," you need to know to start using graphics components:"]}),` `,e.jsx(n.h2,{id:"whats-a-component",children:"What's a component?"}),` `,e.jsxs(n.p,{children:["A Svelte ",e.jsx(o,{children:"component"})," is just a ",e.jsx(n.code,{children:".svelte"})," file."]}),` `,e.jsx(n.p,{children:"A component is usually composed of several parts: JavaScript for managing data, HTML to represent the elements it creates on the page and CSS to style those elements."}),` `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-svelte",children:`