Documentation Index
Fetch the complete documentation index at: https://magicpatterns.mintlify.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Best practices
Component documentation
Good documentation helps the AI understand not only what your components do, but when to use them.Usage guidance
For each component, cover:- Purpose: what problem the component solves
- When to use: which scenarios should lead to this component
- When not to use: anti-patterns or wrong fits
- Variants: when each variant is appropriate
Example: button documentation
Import paths, imports, and exports
A clear import and export layout helps the AI emit correct code.Barrel exports
Createindex.ts files that re-export components:
Document import paths
In Storybook or other docs, show the import path callers should use:Overview
How we import documentation and component code.
Component code
Package layout and how to provide access.
Multiple packages
Monorepos, tokens, and cross-package imports.