8 lines
1.9 KiB
JavaScript
8 lines
1.9 KiB
JavaScript
import{M as c}from"./chunk-PCJTTTQV-8ea8b36c.js";import{p as i,j as t}from"./jsx-runtime-539b76a3.js";import{u as a}from"./index-297ebefe.js";import"./iframe-647e33a7.js";import"../sb-preview/runtime.js";import"./extends-b40c5bac.js";import"./_commonjsHelpers-725317a4.js";import"./index-d475d2ea.js";import"./index-d37d4223.js";import"./index-1a79a776.js";import"./index-356e4a49.js";function p(r={}){const{wrapper:s}=Object.assign({},a(),r.components);return s?t.jsx(s,{...r,children:t.jsx(n,{})}):n();function n(){const e=Object.assign({p:"p",img:"img",h1:"h1",a:"a",em:"em"},a(),r.components);return t.jsxs(t.Fragment,{children:[t.jsx(c,{title:"Actions/Intro",parameters:{...i}}),`
|
|
`,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."})]})}}const m=()=>{throw new Error("Docs-only story")};m.parameters={docsOnly:!0};const o={title:"Actions/Intro",parameters:{...i},tags:["stories-mdx"],includeStories:["__page"]};o.parameters=o.parameters||{};o.parameters.docs={...o.parameters.docs||{},page:p};const M=["__page"];export{M as __namedExportsOrder,m as __page,o as default};
|
|
//# sourceMappingURL=intro.stories-fe56c70f.js.map
|