Readtime
Estimated reading time
Displays estimated reading time for content based on word count.
Usage
Props
| prop | type | default | description |
|---|---|---|---|
| content | string | required | Text content to calculate time from |
| wpm | number | 200 | Words per minute reading speed |
| className | string | - | Additional CSS classes |
Example
Renders as "3 min read"
Utility function
You can also use the utility function directly: