Skip to content

time to read component#3

Open
beforan wants to merge 1 commit into
mainfrom
time-to-read
Open

time to read component#3
beforan wants to merge 1 commit into
mainfrom
time-to-read

Conversation

@beforan

@beforan beforan commented Jul 23, 2026

Copy link
Copy Markdown
Member
✨ Feature

PR Description

This PR adds the DocMetadata wrapper component for displaying document metadata at the top of a document page.

It also adds the TimeToRead component, included in DocMetadata as the first example of a metadata component.

Usage

  1. Add <DocMetadata /> at the top of your .mdx pages to include any metadata components
  2. Add suitable metadata to your document's frontmatter, e.g.
---
readingTime: PT15M
---

import {DocMetadata} from "@components/doc-metadata/DocMetadata"
<DocMetadata/>

# My Docs
...

For readingTime the format is ISO 8601 Duration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants