import{R as i,j as e}from"./index-bIIEL2MP.js";import{useMDXComponents as a}from"./index-CO-0pc0F.js";import{M as d}from"./index-Z-6k0Xrj.js";import{p as h}from"./docsPage-CT2vyZOj.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iframe-CzjIX-qr.js";import"./index-aQYXhgXp.js";import"./index-DrFu-skq.js";const t=({number:o,children:n})=>{const r={display:"flex",alignItems:"flex-start",gap:"0.5em",marginTop:"1.5em"},l={display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgb(0 156 253)",color:"white",borderRadius:"50%",width:"1.8em",height:"1.8em",fontSize:"1em",fontWeight:"bold",lineHeight:"1",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",flexShrink:0},c={paddingTop:"0.25em",fontSize:"1em",lineHeight:"1.4em",wordBreak:"break-word"};return i.createElement("div",{style:r},i.createElement("div",{style:l},o),i.createElement("div",{style:c},n))};function s(o){const n={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",...a(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(d,{title:"Guides/Using with ArchieML docs",parameters:{...h}}),` `,e.jsx(n.h1,{id:"using-components-with-archieml-docs",children:"Using components with ArchieML docs"}),` `,e.jsxs(n.p,{children:["Most of the snippets in these docs show how to use components by passing data into their props directly. In most cases, though, you don't want to hard-code content in your project and instead will get those values from an ",e.jsx(n.a,{href:"https://archieml.org/",rel:"nofollow",children:"ArchieML"}),"-formatted document, hosted in either ",e.jsx(n.a,{href:"https://rngs.io",rel:"nofollow",children:"RNGS.io"})," or a Google Doc."]}),` `,e.jsx(n.p,{children:"In most cases, it's straight forward to fill in component props from ArchieML values, but in some cases you may need to write a small bit of code to translate strings from an ArchieML doc into a different data type or to rearrange data from a doc into a specific format to match a component's props."}),` `,e.jsx(n.h2,{id:"simple-example",children:"Simple example"}),` `,e.jsxs(n.p,{children:["Let's look at a basic component, a ",e.jsx(n.code,{children:"ProfileCard"}),", with a demo that looks like this in the docs:"]}),` `,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-svelte",children:`