- Documentation
- Components
- Components
Components
The components you can use in any page, with no imports, and what happens when you use one Specly doesn't have.
Write a component’s tag in an .mdx page and it renders. You don’t import anything. .md pages don’t render
components; use .mdx.
<Tip>This renders as a tip.</Tip>The components
Section titled “The components”| For | Components |
|---|---|
| Notes in the text | Note, Info, Tip, Check, Warning, Danger and Callout |
| Links and layouts | Card, CardGroup, Columns and Tile |
| Sequences | Steps and Step |
| Alternatives | Tabs and Tab, CodeGroup |
| Hiding detail | Accordion and AccordionGroup |
| Images and embeds | Frame |
| Words in a sentence | Badge, Icon and Tooltip |
| API pages | ParamField, ResponseField, Expandable, RequestExample, ResponseExample and Panel |
| Release notes | Update |
| Files | Tree, Tree.Folder and Tree.File |
| Diagrams | Mermaid |
Wherever a component takes an icon, the name can be a Lucide icon, such as zap, or a
Font Awesome name, such as bolt. Specly maps Font Awesome names to the nearest Lucide icon, so a repo written for
Mintlify keeps its icons. It also knows common brands, like github, and takes an image path or URL.
A name Specly can’t find leaves the icon out and adds a warning to the build.
A component Specly doesn’t have
Section titled “A component Specly doesn’t have”If a page uses a component that isn’t on this list, Specly draws its content inside a dashed frame and adds a warning to the build, so nothing disappears. For example, this tag:
<Quiz question="Ready?">Yes.</Quiz>shows Yes. in a dashed frame, and the build says that <Quiz> isn’t a component Specly knows yet.