VerseOfTheDay component displays the daily Bible verse in an attractive card format with optional sharing, attribution, and customization options.
Basic Usage
Customization Options
Control the appearance and features of the verse card:Size Variants
The component supports two size variants:Minimal Version
Create a clean, minimal verse display by hiding optional elements:Share Functionality
The built-in share button uses the Web Share API when available, falling back to clipboard copy:Specific Day of Year
Display the verse for a specific day instead of today:Calculate Day of Year
Helper function to get the current day:Using Custom Hooks
For more control, use the underlying hooks directly:Theme Support
The component automatically adapts to light and dark themes:Complete Example
A full implementation with controls:Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
versionId | number | - | Bible version ID |
dayOfYear | number | Current day | Day of year (1-366) |
size | 'default' | 'lg' | 'default' | Card size |
showSunIcon | boolean | true | Display sun icon |
showShareButton | boolean | true | Show share button |
showBibleAppAttribution | boolean | true | Show Bible App branding |
background | 'light' | 'dark' | Provider theme | Theme override |
Related Components
- Verse Display - Display any Bible verse
- Bible Reader - Full reading experience
- Custom Hooks - Build your own components
