Lyrics
Time-synced lyrics viewport and printed liner-sheet viewer with bilingual translation lines and click-to-seek support.
Interactive Lyrics Sheet
Click any line to seek in synced mode, or switch to a clean printed liner-sheet layout with optional bilingual translations.
lyrics-playground.tsx
Rain on Chazawa-dori
Shimokita Collective
Mode
Accent
Quick Import
Example.tsxtsx
1import { Lyrics } from "@rekodo/react";2
3export function Example() {4 return (5 <Lyrics6 title="Rain on Chazawa-dori"7 artist="Shimokita Collective"8 activeIndex={1}9 lines={[10 { time: 0, section: "Verse 1", text: "茶沢通りの雨がアスファルトを叩く", translation: "Rain on Chazawa-dori taps across the asphalt" },11 { time: 12, text: "地下室の扉を開ければ、歪んだギターの音", translation: "Open the basement door and distorted guitars spill out" },12 ]}13 />14 );15}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| lines | LyricLine[] | — | Array of { text, time?, translation?, section? } lyric lines. |
| mode | "synced" | "sheet" | "synced" | Synced playback highlighting or printed serif liner-sheet presentation. |
| activeIndex / currentTime | number | undefined | Highlight a line explicitly by index or automatically by playback seconds. |
| onSelectLine | (line: LyricLine, index: number) => void | undefined | Enables click-to-seek on any lyric line. |
| showTranslations | boolean | true | Displays secondary translation text beneath each line when provided. |
| accent | "violet" | "rose" | "violet" | Active line spine and section marker color. |