21 lines
2.6 KiB
JavaScript
21 lines
2.6 KiB
JavaScript
import{M as a}from"./chunk-S4VUQJ4A-6012e64b.js";import{p as o,j as e}from"./jsx-runtime-bcef64ff.js";import{u as i}from"./index-f12770ea.js";import"./iframe-8b410132.js";import"../sb-preview/runtime.js";import"./index-20ac22d7.js";import"./_commonjsHelpers-de833af9.js";import"./index-d37d4223.js";import"./index-e04ae519.js";import"./index-356e4a49.js";function n(t){const s=Object.assign({p:"p",img:"img",h1:"h1",h2:"h2",ol:"ol",li:"li",pre:"pre",code:"code",a:"a"},i(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Intro",parameters:{...o}}),`
|
|
`,e.jsx(s.p,{children:e.jsx(s.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
|
|
`,e.jsx(s.h1,{id:"reuters-graphicsgraphics-components",children:"@reuters-graphics/graphics-components"}),`
|
|
`,e.jsxs("p",{children:[e.jsx("a",{href:"https://www.npmjs.com/package/@reuters-graphics/graphics-components",children:e.jsx("img",{src:"https://badge.fury.io/js/@reuters-graphics%2Fgraphics-components.svg",alt:"npm version",style:{display:"inline-block",margin:"0 5px 0 0"}})}),e.jsx("a",{href:"https://github.com/reuters-graphics/graphics-components",children:e.jsx("img",{src:"https://badgen.net/badge/icon/GitHub?icon=github&label",alt:"GitHub",style:{display:"inline-block",margin:"0 5px 0 0"}})})]}),`
|
|
`,e.jsx(s.p,{children:"Svelte components, SCSS and more you can use in graphics projects."}),`
|
|
`,e.jsx(s.h2,{id:"getting-started",children:"Getting started"}),`
|
|
`,e.jsxs(s.ol,{children:[`
|
|
`,e.jsx(s.li,{children:"Install"}),`
|
|
`]}),`
|
|
`,e.jsx(s.pre,{children:e.jsx(s.code,{className:"language-bash",children:`yarn add @reuters-graphics/graphics-components
|
|
`})}),`
|
|
`,e.jsxs(s.ol,{start:"2",children:[`
|
|
`,e.jsxs(s.li,{children:["Checkout the ",e.jsx(s.a,{href:"?path=/docs/guides-using-these-docs--page",children:"guides"}),", if you haven't, or dive straight into the docs to start using components."]}),`
|
|
`]}),`
|
|
`,e.jsx(s.pre,{children:e.jsx(s.code,{className:"language-svelte",children:`<script>
|
|
import { BodyText } from '@reuters-graphics/graphics-components';
|
|
<\/script>
|
|
|
|
<BodyText text="{'Hello world!'}" />
|
|
`})})]})}function c(t={}){const{wrapper:s}=Object.assign({},i(),t.components);return s?e.jsx(s,{...t,children:e.jsx(n,{...t})}):n(t)}const p=()=>{throw new Error("Docs-only story")};p.parameters={docsOnly:!0};const r={title:"Intro",parameters:{...o},tags:["stories-mdx"],includeStories:["__page"]};r.parameters=r.parameters||{};r.parameters.docs={...r.parameters.docs||{},page:c};const f=["__page"];export{f as __namedExportsOrder,p as __page,r as default};
|
|
//# sourceMappingURL=intro.stories-a438706c.js.map
|