Published
- 1 min read
Nested content
You can put your content inside a folder along with several other files. It will be rendered/rerouted as if the slug came from a single file instead of folder.
The concept is similar like python package or go package
Importing MDX component in the same directory
Simply import it with the extension .mdx, just like you would inside MDX content.
import Component from './components/component.mdx'
<Component />
Will output the content of the component
This is a component file
Importing React component
<BaseRunnableWidget client:only='react'>
<div aslabel='input'>Input $a$</div>
</BaseRunnableWidget>
Importing images in the same directory
Include the image location like this

