Navigation Components
Explorer
A file tree navigation component that displays your vault’s folder structure.View Source Code
View Source Code
quartz/components/Explorer.tsx
Custom title for the explorer section
Whether folders should be collapsed or open by default
What happens when you click a folder:
collapse- Toggles folder open/closedlink- Navigates to folder page
Remember folder open/closed state between page visits
Custom sorting function for files and folders. Default sorts folders first, then alphabetically.
Filter which files/folders to show. Default hides the “tags” folder.
Transform file tree nodes before display
quartz.layout.ts
Search
Full-text search with preview functionality.View Source Code
View Source Code
quartz/components/Search.tsx
Show content preview in search results
quartz.layout.ts
Graph
Interactive visualization of page connections and links.View Source Code
View Source Code
quartz/components/Graph.tsx
How many hops away from the current page to show
Zoom level for the graph
How strongly nodes push away from each other
How strongly nodes are pulled toward the center
Target distance between connected nodes
Enable radial layout for global graph
quartz.layout.ts
TableOfContents
Automatic table of contents from page headings.View Source Code
View Source Code
quartz/components/TableOfContents.tsx
Visual style:
modern- Collapsible with smooth interactionslegacy- Simple<details>element
quartz.layout.ts
Breadcrumbs
Hierarchical navigation trail showing the current page’s location.View Source Code
View Source Code
quartz/components/Breadcrumbs.tsx
Symbol between breadcrumb items
Display name for the root/home page
Use frontmatter title for folder names (may impact performance)
Include the current page in breadcrumbs
quartz.layout.ts
Backlinks
Shows all pages that link to the current page.View Source Code
View Source Code
quartz/components/Backlinks.tsx
Hide the backlinks section when there are no backlinks
quartz.layout.ts
Content Components
ArticleTitle
Displays the page title as an<h1> heading. No configuration options.
quartz.layout.ts
PageTitle
Site title that links back to home. No configuration options.quartz.layout.ts
ContentMeta
Shows publication date and optional reading time.View Source Code
View Source Code
quartz/components/ContentMeta.tsx
Display estimated reading time
Show comma separator between date and reading time
quartz.layout.ts
TagList
Displays tags from page frontmatter. No configuration options.quartz.layout.ts
RecentNotes
Lists the most recently modified or published pages.View Source Code
View Source Code
quartz/components/RecentNotes.tsx
Section heading
Maximum number of notes to display
Slug to link for viewing all notes
Display tags for each note
Filter which pages to include
Custom sorting function
quartz.layout.ts
Utility Components
Darkmode
Toggle button for light/dark theme. No configuration options.quartz.layout.ts
ReaderMode
Toggle button for reader mode (focused reading view). No configuration options.quartz.layout.ts
Comments
Giscus-powered comments section.View Source Code
View Source Code
quartz/components/Comments.tsx
GitHub repository in format
owner/repoRepository ID from Giscus configuration
Discussion category name
Category ID from Giscus configuration
How to map pages to discussions
quartz.layout.ts
Comments can be disabled per-page using frontmatter:
comments: falseFooter
Site footer with links and copyright.View Source Code
View Source Code
quartz/components/Footer.tsx
Object mapping link text to URLs
quartz.layout.ts
Spacer
Adds vertical spacing. Typically used withMobileOnly.
quartz.layout.ts
DesktopOnly / MobileOnly
Wrapper components that show content only on desktop or mobile.quartz.layout.ts
Flex
Flexbox layout container for arranging components.View Source Code
View Source Code
quartz/components/Flex.tsx
quartz.layout.ts
ConditionalRender
Conditionally render a component based on page properties.View Source Code
View Source Code
quartz/components/ConditionalRender.tsx
quartz.layout.ts
Page Components
These are full-page templates used by Quartz’s emitter plugins:- Content - Standard single-page template
- TagContent - Tag index page showing all pages with a tag
- FolderContent - Folder index page
- NotFound - 404 error page
Related
Components Overview
Learn about Quartz’s component architecture
Custom Components
Create your own custom components