Components
The built in buttons, tabs, cards, code blocks, and search box, with their markup. Each page ships only the CSS it uses.
Components are plain HTML with a class. The compiler checks each page’s HTML and inlines CSS only for the components that page uses.
Button
Start building
Read the docs
Copy
- Solid, the default, is the main action on a surface.
- Outline is for secondary actions.
data-size="sm"makes a compact 32px button.
Tabs
Pill navigation. Add mira-nav to each link and the current page is marked with aria-current.
Home
Docs
Card
Routing
How files become URLs.
A link card lifts 2px on hover.
Code
Fenced code blocks in Markdown render with syntax highlighting. In a .mira template, use <mira-code lang="rust">. See Markdown.
Search
<mira-search> renders a search box over the site’s index. See Search.