hypnagaga/packages/graphics-components/docs/assets/intro-2v0ebZgz.js

19 lines
2 KiB
JavaScript

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 o}from"./docsPage-CT2vyZOj.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iframe-CzjIX-qr.js";import"./index-aQYXhgXp.js";import"./index-DrFu-skq.js";function t(n){const s={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",ol:"ol",p:"p",pre:"pre",...r(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Intro",parameters:{...o}}),`
`,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:`pnpm i @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--docs",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 u(n={}){const{wrapper:s}={...r(),...n.components};return s?e.jsx(s,{...n,children:e.jsx(t,{...n})}):t(n)}export{u as default};