import{M as a}from"./chunk-PCJTTTQV-d59198dd.js";import{p as m,j as e}from"./jsx-runtime-539b76a3.js";import{u as i}from"./index-297ebefe.js";import"./iframe-3fdd9734.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:n}=Object.assign({},i(),r.components);return n?e.jsx(n,{...r,children:e.jsx(s,{})}):s();function s(){const t=Object.assign({p:"p",img:"img",h1:"h1",code:"code",pre:"pre"},i(),r.components);return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Contributing/Recipes: Story with media",parameters:{...m}}),` `,e.jsx(t.p,{children:e.jsx(t.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),` `,e.jsx(t.h1,{id:"recipes-story-with-media",children:"Recipes: Story with media"}),` `,e.jsx(t.p,{children:"To use media files in your stories, import them directly."}),` `,e.jsxs(t.p,{children:["First, add a media file in a ",e.jsx(t.code,{children:"stories"})," directory in your component folder like this:"]}),` `,e.jsx(t.pre,{children:e.jsx(t.code,{children:`YourComponent/ YourComponent.svelte YourComponent.stories.svelte stories/ imgs/ myImage.jpg `})}),` `,e.jsx(t.p,{children:"Now, import your media file directly in your code, which will resolve to the URL of the file."}),` `,e.jsx(t.pre,{children:e.jsx(t.code,{className:"language-html",children:`