Documentation Index
Fetch the complete documentation index at: https://mintlify.com/finsweet/attributes/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Read Time attribute calculates and displays the estimated reading time for text content. It analyzes the word count of specified content and displays the estimated minutes needed to read it, based on average reading speed.Attribute Syntax
Elements
Defines the role of the element:
contents- The wrapper containing the content to be measuredtime- The element that will display the calculated reading time
Settings
Defines the Words Per Minute ratio used for calculation. The default of 265 WPM represents average adult reading speed.
Defines the number of decimal places displayed in the time output. Set to
0 for whole numbers, 1 for one decimal place, etc.Usage Examples
Common Use Cases
Blog Posts
Display estimated reading time at the top of blog articles to help readers decide if they have time to read now.Documentation Pages
Show reading time for documentation sections to help users plan their learning sessions.News Articles
Provide quick-read indicators for news content, especially useful for mobile users.Case Studies
Display reading time for case studies and long-form content to set expectations.Email Newsletters
Show reading time in email newsletter web versions to encourage engagement.CMS Collections
Automatically calculate reading time for CMS blog posts and articles.Calculation Method
The read time is calculated using this formula:- 1,000 words at 265 WPM = 3.77 minutes (displays as “4” with 0 decimals)
- 500 words at 200 WPM = 2.5 minutes (displays as “2.5” with 1 decimal)
Word Counting
The attribute counts words by:- Extracting all text content from the contents element
- Matching word patterns (including hyphenated words and contractions)
- Ignoring HTML tags and attributes
- Counting all visible text
Words are counted using the pattern
/[\w\d''-]+/gi, which includes:- Regular words
- Hyphenated words (e.g., “well-known”)
- Contractions (e.g., “don’t”)
- Numbers
Reading Speed Guidelines
| Content Type | Suggested WPM |
|---|---|
| Simple/casual content | 300+ |
| Average blog posts | 265 (default) |
| Technical documentation | 200-225 |
| Academic papers | 150-200 |
| Legal documents | 125-150 |
Decimal Places
Choose decimal places based on your needs:- 0 decimals: Clean, simple (“5 min”)
- 1 decimal: More precise (“5.5 min”)
- 2 decimals: Very precise (“5.73 min”) - rarely needed
Styling Examples
CMS Integration
In Webflow CMS template pages:- Add the
fs-readtime-element="contents"to your Rich Text element - Add a text element with
fs-readtime-element="time"in your template - The read time is calculated automatically for each CMS item
- Optionally hide the contents element if you’re also displaying it elsewhere