Retype includes several components for navigation and visual labeling: styled buttons and badges, numbered step sequences, prominent reference links, and automatic backlinks.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/retypeapp/retype/llms.txt
Use this file to discover all available pages before exploring further.
Buttons
The Button component uses link syntax with a!button identifier.
Variants
Set the variant using thevariant attribute or the shorthand text|variant notation.
| Variant | |
|---|---|
base | Uses the configured base color |
primary (default) | Blue |
secondary | Gray |
success | Green |
question | Purple |
danger | Red |
warning | Yellow |
info | Light blue |
light | Light |
dark | Dark |
ghost | Transparent border |
contrast | Inverts based on theme |
Size
Corner style
Link target
Set thetarget attribute to control which tab or window opens the link. The value blank is automatically converted to _blank.
Icons
Buttons support Octicon names, emoji shortcodes, image file paths, and inline SVG as icon values.iconAlign="right" to place the icon after the text.
Theme variables
Button colors can be customized inretype.yml.
Badges
The Badge component is similar to Button but is designed for inline labeling rather than call-to-action use. The link is optional.variant, size, corners, target, and icon options as buttons.
Theme variables
Badge colors can be customized inretype.yml.
Steps
The Steps component creates a numbered sequence using the>>> fence syntax.
The step title must be separated from
>>> by one space. >>> Step 1 works; >>>Step 1 does not.Custom start number
Start the sequence at a custom number using the>>> N. Title syntax. Subsequent steps auto-increment.
12. prefix is stripped from the rendered title. Steps are numbered 12, 13, 14.
Inner content
Steps can contain any Markdown content or other Retype components, including code blocks, tabs, and callouts.Anchors
Each step generates an anchor based on its title. Link directly to a step using the anchor in a URL.Reference links
The[!ref] component renders a prominent linked block, similar in function to a regular hyperlink but more visually distinct.
Custom text
Custom icon
Theicon attribute accepts an Octicon name, an emoji shortcode, or an image file URL.
icon and text:
Link target
Backlinks
Backlinks require an active Retype Pro license.
Custom title
Configuration
Backlinks can be configured at the project level inretype.yml or overridden per page in frontmatter.
retype.yml
page frontmatter
Behavior
The backlinks component renders only when:- The backlinks feature is enabled at the project or page level.
- At least one other page in the project links to the current page.
- A valid Retype Pro license is active.
