Rebar UI

1.0

synthetic

TopBar

The header of a phone screen: back or menu, a title, trailing actions, and the status-bar strip.

TopBarSolid and overlay, phone width

Ask

  • Why do Catholics confess to a priest?2 hours ago
  • Is it a sin to miss Mass when I am sick, or when I am up all night caring for a newborn?Yesterday
  • Explain todayΓÇÖs Gospel3 days ago

Confession to a priest

Narrated by an Athic author

Catholics confess to a priest because Jesus gave his Apostles the ministry of reconciliation. ΓÇ£Whose sins you shall forgive, they are forgiven themΓÇ¥ (John 20:23).

Back, title, trailing action

Ask

Menu, logo, unread dot
Centred title, long text

Confession to a priest and the seal of the confessional

Tab root (no leading)

Your Profile

Trailing text action

Your Details

Two trailing icons

Library

Bare icon buttons (sized and recoloured by the bar)

Library

Logo with a link and mark
Editable title

Status-bar strip (28px)

Ask

Overlay on a banner

Confession to a priest

Overlay, menu and share

The Rosary, decade by decade

Custom back and menu glyphs (backIcon, menuIcon)

Ask

Compact bar via --rebar-top-bar-* properties (padding, gap, 21px title, glyph buttons)

Your Topics

In context

Rename in a discussion, logo on TodayThe title renames in place; the home screen shows the logo and an unread dot

Why do we confess our sins to a priest and not straight to God?
Because Jesus gave the Apostles that very ministry. After the Resurrection he told them, ΓÇ£Whose sins you shall forgive, they are forgiven themΓÇ¥ (John 20:23).

Today · Friday 24 October

Saint Raphael the Archangel

Today’s Gospel

Luke 12:1-7

Nothing is hidden that will not be revealed. Even the hairs of your head are all counted.

Props

PropTypeRequiredDefault
leadingReactNodeNonone
onBack(() => void) | undefinedNo—
onMenu(() => void) | undefinedNo—
backIconReactNodeNo—
menuIconReactNodeNo—
titleReactNode | TopBarEditableTitleNo—
logoReactNodeNo—
align"center" | "start" | undefinedNostart
trailingReactNodeNo—
tone"solid" | "overlay" | undefinedNosolid
safeAreaboolean | "top" | undefinedNotrue
stickyboolean | undefinedNo—
badgeboolean | undefinedNo—
badgeLabelstring | undefinedNoNew activity

Accessibility

A <header> with the title as the page <h1>. The built-in back and menu buttons are 44px targets named Back and Menu; the status-bar strip is aria-hidden. An editable title is a button (Title: …, Edit) that becomes a text field: Enter or the check button saves, Escape cancels. A badge dot is an image labelled New activity.

data-rebar-* attributes

data-rebar-component="top-bar", data-rebar-tone="solid" | "overlay", data-rebar-align, data-rebar-sticky; parts safe-area, bar, leading, title, logo, trailing, badge, edit. Set --rebar-top-bar-safe-area to override env(safe-area-inset-top) and --rebar-top-bar-height (default 56px) to resize the bar. A bare <button> holding one svg in trailing is sized, rounded and recoloured by the bar.