Components
Components are helpers write as React components to simplify the creation
of interactive and engaging documentation. You can import them from any
location using the @components alias:
import { Image } from "@components/markdown";
Layout
Columns
<Columns>
<div className="bg-teal-300 rounded-sm">One</div>
<div className="bg-cyan-300 rounded-sm">Two</div>
</Columns>
<Columns gap={{ phone: '2', tablet: '4' }}>
<div className="bg-teal-300 rounded-sm">One</div>
<div className="bg-cyan-300 rounded-sm">Two</div>
</Columns>
One
Two
One
Two
Linking
PageLink
<PageLink id='reference/actions/data/write-data-variable' />
Properties
Property
<Property name='Property A'>
This is the description of the property…
</Property>
<Property name='Property B' type="dynamic-property">
This is the description of the property…
</Property>
<Property name='Action A' type="action">
This is the description of the action…
</Property>
PropertyGroup
<PropertyGroup name='Property Group Title'>
<PropertyGroup.Property name='PropertyGroup.Property A'>
This is the description of the property…
</PropertyGroup.Property>
</PropertyGroup>
Property Group Title
Property A
This is the description of the property…
Browser
<Browser>
<div>...</div>
</Browser>
A browser frame that can be used to wrap screenshots…
<Browser bg='desktop'>
...
</Browser>
With a desktop like background
<Browser bg='desktop-playful'>
...
</Browser>
With playful background
Terminal
<Terminal commands={["git clone "]} />
Terminal
>
git clone
DirectoryStructure
<DirectoryStructure>
<Directory name=".github" description='...'>
<Directory name="workflows" description='...' />
<File name="package.json" description='...' />
</Directory>
<Directory name="test" description='...' />
<File name="package.json" description='...' />
</DirectoryStructure>
.githubAll Github related configuration files are placed within this directory
.github
All Github related configuration files are placed within this directory
workflows
CI Workflows that can be triggered by different events in your repo
package.json
Project metadata
test
Contains all the test related things
package.json
Project metadata
Helpers
CopyButton
<div className="flex gap-2 items-center">
<span>eve</span>
<CopyButton>eve</CopyButton>
</div>
eve