import
statement to include components from other files:
math-tutor.prompt.mdx
Component Props
Components can accept props to make them more dynamic:language-tutor.prompt.mdx
Creating Components
Components are just regular.mdx
files that can accept props:
math-instructions.mdx
:
math-instructions.mdx
Importing Plain Markdown
You can also import plain markdown files:math-tutor.prompt.mdx
Best Practices
- Keep components focused and single-purpose
- Use meaningful component and prop names
- Consider breaking complex prompts into multiple components
Have Questions?
We’re here to help! Choose the best way to reach us:
- Join our Discord community for quick answers and discussions
- Email us at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about our business solutions