8 lines
1.9 KiB
JavaScript
8 lines
1.9 KiB
JavaScript
import{M as i}from"./chunk-S4VUQJ4A-c1008b8b.js";import{p as n,j as t}from"./jsx-runtime-75e6d74c.js";import{u as a}from"./index-ab200182.js";import"./iframe-8bd743bb.js";import"../sb-preview/runtime.js";import"./index-c7d73952.js";import"./_commonjsHelpers-de833af9.js";import"./index-d37d4223.js";import"./index-e04ae519.js";import"./index-356e4a49.js";function s(o){const e=Object.assign({p:"p",img:"img",h1:"h1",a:"a",em:"em"},a(),o.components);return t.jsxs(t.Fragment,{children:[t.jsx(i,{title:"Actions/Intro",parameters:{...n}}),`
|
|
`,t.jsx(e.p,{children:t.jsx(e.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
|
|
`,t.jsx(e.h1,{id:"actions",children:"Actions"}),`
|
|
`,t.jsxs(e.p,{children:["Svelte ",t.jsx(e.a,{href:"https://svelte.dev/tutorial/actions",target:"_blank",rel:"nofollow noopener noreferrer",children:"actions"}),' are arbitrary functions that run after Svelte "mounts" an element in the DOM.']}),`
|
|
`,t.jsxs(e.p,{children:["But let's try a ",t.jsx(e.em,{children:"less"})," technical definition: Svelte actions are extra topping you can add to your HTML once it comes out of the oven."]}),`
|
|
`,t.jsx(e.p,{children:"These are little functions that do little, if often very useful, things on top of your code."}),`
|
|
`,t.jsx(e.p,{children:"Have a look through the actions we have in this section to get a better idea and watch this space for more TK."})]})}function c(o={}){const{wrapper:e}=Object.assign({},a(),o.components);return e?t.jsx(e,{...o,children:t.jsx(s,{...o})}):s(o)}const p=()=>{throw new Error("Docs-only story")};p.parameters={docsOnly:!0};const r={title:"Actions/Intro",parameters:{...n},tags:["stories-mdx"],includeStories:["__page"]};r.parameters=r.parameters||{};r.parameters.docs={...r.parameters.docs||{},page:c};const y=["__page"];export{y as __namedExportsOrder,p as __page,r as default};
|
|
//# sourceMappingURL=intro.stories-fa744e2b.js.map
|