Rebar UI

1.1

syntheticnew

ReadingView

A reading panel for Scripture and Mass readings: optional narration bar, numbered verses or free text, an actions row and a credit.

Bible chapterVerse 2 is highlighted; Add Note turns the pill into Note added

Galatians 3

1
O senseless Galatians, who hath bewitched you that you should not obey the truth, before whose eyes Jesus Christ hath been set forth, crucified among you?
2
This only would I learn of you: Did you receive the Spirit by the works of the law, or by the hearing of the faith?
3
Are you so foolish, that, whereas you began in the spirit, you would now be made perfect by the flesh?
4
Have you suffered so great things in vain? If it be yet in vain.
Loading

Galatians 3

Translation unavailable

Galatians 3

No reading
Oct 11
The missal hasn’t published Oct 11 yet. Try another day.
Loading with a label (loadingLabel)
First reading ┬╖ Galatians 3:22-29
Loading…
Classic reading panel from --rebar-reading-view-* properties (kicker, italic note, verseActions="below", chip pill)
First reading ┬╖ Galatians 3:22-29
Not available inline: look this citation up in your own Bible or an approved online edition.
1
O senseless Galatians, who hath bewitched you that you should not obey the truth, before whose eyes Jesus Christ hath been set forth, crucified among you?
2
This only would I learn of you: Did you receive the Spirit by the works of the law, or by the hearing of the faith?
3
Are you so foolish, that, whereas you began in the spirit, you would now be made perfect by the flesh?
4
Have you suffered so great things in vain? If it be yet in vain.
Plain tone
First reading ┬╖ Galatians 3:22-29
But the scripture hath concluded all under sin, that the promise, by the faith of Jesus Christ, might be given to them t…

In context

Today’s MissalA Mass reading with narration, saved to the Library
Today’s Missal

Saturday, 27th Week in Ordinary Time

First reading ┬╖ Galatians 3:22-29

0:00 / 0:00

But the scripture hath concluded all under sin, that the promise, by the faith of Jesus Christ, might be given to them that believe. But before the faith came, we were kept under the law shut up, unto that faith which was to be revealed. Wherefore the law was our pedagogue in Christ, that we might be justified by faith.
Bible

Galatians 3

1
O senseless Galatians, who hath bewitched you that you should not obey the truth, before whose eyes Jesus Christ hath been set forth, crucified among you?
2
This only would I learn of you: Did you receive the Spirit by the works of the law, or by the hearing of the faith?
3
Are you so foolish, that, whereas you began in the spirit, you would now be made perfect by the flesh?
4
Have you suffered so great things in vain? If it be yet in vain.

Props

PropTypeRequiredDefault
versesReadingVerse[] | undefinedNo—
titleReactNodeNo—
citationReactNodeNo—
childrenReactNodeNo—
highlightnumber | [number, number] | undefinedNo—
onVerseAction((verse: ReadingVerse) => void) | undefinedNo—
verseActionLabelstring | undefinedNoAdd Note
renderVerse((verse: ReadingVerse, context: ReadingVerseContext) => ReactNode) | undefinedNo—
verseFont"sans" | "serif" | undefinedNo—
notedVersesnumber[] | undefinedNo[]
verseActions"inline" | "below" | undefinedNoinline
mediaReactNodeNo—
actionsReactNodeNo—
footerReactNodeNo—
loadingboolean | undefinedNo—
loadingLabelReactNodeNo—
emptyReactNodeNo—
errorReactNodeNo—
tone"tint-1" | "tint-2" | "tint-3" | "tint-4" | "plain" | undefinedNotint-2

Accessibility

An <article> with the title as an h2. Verse numbers are <sup> text beside the verse, and each verse pill is a button named "Add Note, verse 2" (or "Note added, verse 1"), 44px tall. The error block is role="alert"; loading sets aria-busy with a "Loading reading" label.

data-rebar-* attributes

data-rebar-component="reading-view", data-rebar-tone="tint-1".."tint-4" | "plain", data-rebar-state="loading" | "error". Parts: title, panel, citation, media, verses, verse (data-rebar-highlighted, data-rebar-noted), verse-number, verse-action, body, actions, footer, loading, empty, error.

Opt-in properties for a classic reading panel

loadingLabel shows a text message (for example "Loading…") instead of the skeleton lines. verseActions="below" puts each verse's action pill and extra slot on a row of their own under the number and the text, offset by --rebar-reading-view-pill-margin-start. Every other value is a custom property whose fallback is the previous look: --rebar-reading-view-panel-gap, -citation-size/-weight/-tracking/-color, -message-padding/-align/-size/-style, -footer-size, -radius, -padding, -verses-gap, -verse-columns/-gap/-padding/-margin/-radius, -highlight-padding/-background, -num-size/-weight/-line-height/-margin-top, -body-size/-line-height/-max-width, and -pill-min-height/-padding/-background/-color/-done-color/-radius/-size/-decoration/-margin-top.

Migrating to Ant Design

No equivalent. Use Typography.Paragraph inside a Card with a tinted background; the verse numbering and per-verse actions are the part to keep.

Custom verse rows, extra slot and verse font

A verse may carry extra, rendered under its text and pill inside the same row (an inline note composer). renderVerse(verse, { highlighted, noted, content }) replaces what follows the verse number (the number, highlight and noted marks stay); content is the default text, pill and extra to wrap. verseFont="sans" switches the verse text from the theme serif to the sans face.

<ReadingView verses={[{ num: 1, text: "In the beginning", extra: <NoteComposer /> }]} verseFont="sans" />

Tokens

Custom properties, set on the component or any ancestor. The default is what applies when one is unset. 39 of 39 were added in 1.1.0 and are marked.

PropertyDefault
--rebar-reading-view-body-line-height1.71.1
--rebar-reading-view-body-max-width34em1.1
--rebar-reading-view-body-sizeinherit1.1
--rebar-reading-view-citation-colorvar(--rebar-color-text-secondary)1.1
--rebar-reading-view-citation-sizevar(--rebar-font-size-xs)1.1
--rebar-reading-view-citation-tracking0.06em1.1
--rebar-reading-view-citation-weightvar(--rebar-font-weight-semibold)1.1
--rebar-reading-view-extra-margin-start01.1
--rebar-reading-view-extra-margin-topvar(--rebar-space-xs, 4px)1.1
--rebar-reading-view-footer-sizevar(--rebar-font-size-xs)1.1
--rebar-reading-view-highlight-backgroundcolor-mix(in srgb, var(--rebar-color-primary) 16%, transparent)1.1
--rebar-reading-view-highlight-paddingvar(--rebar-reading-view-verse-padding, var(--rebar-space-xs))1.1
--rebar-reading-view-message-aligncenter1.1
--rebar-reading-view-message-paddingvar(--rebar-space-md)1.1
--rebar-reading-view-message-sizeinherit1.1
--rebar-reading-view-message-stylenormal1.1
--rebar-reading-view-num-line-height2.41.1
--rebar-reading-view-num-margin-top01.1
--rebar-reading-view-num-sizevar(--rebar-font-size-xs)1.1
--rebar-reading-view-num-weightvar(--rebar-font-weight-semibold)1.1
--rebar-reading-view-paddingvar(--rebar-space-md)1.1
--rebar-reading-view-panel-gapvar(--rebar-space-md)1.1
--rebar-reading-view-pill-backgroundtransparent1.1
--rebar-reading-view-pill-colorvar(--rebar-color-text-secondary)1.1
--rebar-reading-view-pill-decorationunderline1.1
--rebar-reading-view-pill-done-colorvar(--rebar-color-text-primary)1.1
--rebar-reading-view-pill-margin-start01.1
--rebar-reading-view-pill-margin-top01.1
--rebar-reading-view-pill-min-height44px1.1
--rebar-reading-view-pill-padding0 var(--rebar-space-sm)1.1
--rebar-reading-view-pill-radius01.1
--rebar-reading-view-pill-sizevar(--rebar-font-size-xs)1.1
--rebar-reading-view-radiusvar(--rebar-radius)1.1
--rebar-reading-view-verse-columns1.6em 1fr1.1
--rebar-reading-view-verse-gapvar(--rebar-space-xs)1.1
--rebar-reading-view-verse-margin0 calc(-1 * var(--rebar-space-xs))1.1
--rebar-reading-view-verse-paddingvar(--rebar-space-xs)1.1
--rebar-reading-view-verse-radiusvar(--rebar-radius-sm)1.1
--rebar-reading-view-verses-gapvar(--rebar-space-sm)1.1