Corpora UI

Verse

Corpus verse line: a chapter link plus inline spans and note markers, each opening a click popover.

Preview

Use the controls to explore the component's props.

Props

PropTypeDefaultDescription
chapterReactNode—Chapter reference rendered as a leading superscript link.
hrefstring—Destination of the chapter link.
chapterPopover / renderChapterPopoverReactNode | (props: ITextPopoverRenderProps) => ReactNode—Popover opened by clicking the chapter reference. Without it the chapter is a plain link.
size"small" | "medium" | "large" | number"medium"Type scale for the verse. Nested VerseSpan/VerseNote inherit it unless they set their own.

Example

Click the chapter reference, dotted spans or the note marker

In the beginning the heavens and the .

import { Verse, VerseNote, VerseSpan } from "@exegia/corpora-ui"

<Verse chapter="1:1" href="#gen-1" chapterPopover={<p>Genesis 1</p>}>
  In the beginning{" "}
  <VerseSpan popover={<p>Hebrew bereshit.</p>}>God created</VerseSpan> the
  heavens and the earth
  <VerseNote popover={<p>Textual note.</p>}>a</VerseNote>.
</Verse>

Last updated on

On this page