Advanced components
Reference for Accordion, Frame, Tooltip, and ParamField — four MDX components for structured content, media, and API documentation.
These four components extend the built-in component set with collapsible panels, image frames, inline tooltips, and API parameter tables.
Accordion
A collapsible disclosure panel. Useful for FAQs, optional detail, or content that most readers will skip.
Props: title (required string) — the clickable summary label.
<Accordion title="How does the search index get built?"> At build time, `search-index.json.ts` collects every published page and serializes title, description, section, and a stripped-down version of the body into an Orama index. The browser downloads it on first search.</Accordion>How does the search index get built?
At build time, search-index.json.ts collects every published page and serializes title, description, section, and a stripped-down version of the body into an Orama index. The browser downloads it on first search.
Nest any MDX inside an Accordion — code blocks, callouts, and lists all render correctly inside the panel.
Stack multiple Accordions to build a FAQ section:
<Accordion title="Do I need to know Astro?"> No. Dustavez works out of the box. You only touch Astro config if you need advanced customization.</Accordion>
<Accordion title="Can I use a custom font?"> Yes — see the Colors & typography page for how to swap or extend the font stack.</Accordion>Do I need to know Astro?
No. Dustavez works out of the box. You only touch Astro config if you need advanced customization.
Can I use a custom font?
Yes — see the Colors & typography page for how to swap or extend the font stack.
Frame
A container for images and media. Adds a rounded border, correct display sizing, and an optional caption.
Props:
caption— optional string displayed below the contentborder— optional boolean, defaulttrue. Setfalsefor borderless frames.
<Frame caption="The three-column layout at full width."> </Frame>Without a border:
<Frame border={false}> </Frame>Frame sets width: 100% on its content, so images always fill the available content width. The original aspect ratio is preserved via height: auto.
Tooltip
An inline tooltip that appears on hover. Wrap any inline text to add a dashed underline with an explanatory pop-up.
Props: text (required string) — the tooltip content shown on hover.
The build outputs a <Tooltip text="A site with no server-side rendering or runtime dependencies.">static site</Tooltip>that deploys to any CDN.The build outputs a static site that deploys to any CDN.
Configure <Tooltip text="Internationalization — support for multiple languages.">i18n</Tooltip>by adding locale folders to content/docs/.Configure i18n by adding locale folders to content/docs/.
Keep tooltip text short — one sentence at most. Long tooltips overflow on mobile and defeat the purpose of keeping content inline.
ParamField
A structured parameter row for API and configuration reference pages. Renders a parameter name, type badge, optional required indicator, and a description.
Props:
name(required string) — the parameter name, displayed in monospacetype(required string) — the type label shown as a badgerequired— optional boolean, defaultfalse. Shows a “required” badge when true.description— optional string for a short inline description. Use the slot for longer explanations.
<ParamField name="output" type="'static'" required description="Dustavez only supports static output." />output 'static' required Dustavez only supports static output.
<ParamField name="site" type="string"> The full canonical URL of your deployed site. Used for sitemap and canonical link generation.
```ts site: 'https://docs.example.com' ```</ParamField>site string The full canonical URL of your deployed site. Used for sitemap and canonical link generation.
site: 'https://docs.example.com'tags string[] An array of topic tags for the page. Improves search relevance but is not displayed in the UI by default.
ParamField is designed for API reference sections. For configuration options in a prose guide, a regular table or description list often reads more naturally.