TopBar
The header of a phone screen: back or menu, a title, trailing actions, and the status-bar strip.
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).
Ask
Confession to a priest and the seal of the confessional
Your Profile
Your Details
Library
Library
Ask
Confession to a priest
The Rosary, decade by decade
Ask
Your Topics
In context
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
| Prop | Type | Required | Default |
|---|---|---|---|
leading | ReactNode | No | none |
onBack | (() => void) | undefined | No | — |
onMenu | (() => void) | undefined | No | — |
backIcon | ReactNode | No | — |
menuIcon | ReactNode | No | — |
title | ReactNode | TopBarEditableTitle | No | — |
logo | ReactNode | No | — |
align | "center" | "start" | undefined | No | start |
trailing | ReactNode | No | — |
tone | "solid" | "overlay" | undefined | No | solid |
safeArea | boolean | "top" | undefined | No | true |
sticky | boolean | undefined | No | — |
badge | boolean | undefined | No | — |
badgeLabel | string | undefined | No | New 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.
Tokens
Custom properties, set on the component or any ancestor. The default is what applies when one is unset.
| Property | Default | |
|---|---|---|
--rebar-top-bar-action-color | var(--rebar-color-primary-bright, var(--rebar-color-text-inverse, #fbf6ee)) | |
--rebar-top-bar-action-font-size | inherit | |
--rebar-top-bar-action-height | var(--rebar-top-bar-action-size, 44px) | |
--rebar-top-bar-action-icon-padding | 0 | |
--rebar-top-bar-action-padding | 0 14px | |
--rebar-top-bar-action-size | 44px | |
--rebar-top-bar-action-weight | 600 | |
--rebar-top-bar-action-width | var(--rebar-top-bar-action-size, 44px) | |
--rebar-top-bar-button-font-size | inherit | |
--rebar-top-bar-button-height | 44px | |
--rebar-top-bar-button-line-height | inherit | |
--rebar-top-bar-button-padding | 0 | |
--rebar-top-bar-button-width | 44px | |
--rebar-top-bar-gap | 2px | |
--rebar-top-bar-height | 56px | |
--rebar-top-bar-logo-font-family | var(--rebar-font-family-display, inherit) | |
--rebar-top-bar-logo-font-size | 1.45rem | |
--rebar-top-bar-logo-font-weight | 600 | |
--rebar-top-bar-logo-height | 24px | |
--rebar-top-bar-logo-line-height | 1 | |
--rebar-top-bar-logo-link-display | inline-flex | |
--rebar-top-bar-logo-media-display | block | |
--rebar-top-bar-logo-padding | 0 8px | |
--rebar-top-bar-overlay-background | linear-gradient(color-mix(in srgb, var(--rebar-color-bg-inverse, #1d2040) 75%, transparent), transparent) | |
--rebar-top-bar-overlay-button-background | color-mix(in srgb, var(--rebar-color-bg-inverse, #1d2040) 45%, transparent) | |
--rebar-top-bar-overlay-button-margin | 0 4px | |
--rebar-top-bar-padding | 0 6px | |
--rebar-top-bar-safe-area | env(safe-area-inset-top, 0px) | |
--rebar-top-bar-title-button-min-height | 44px | |
--rebar-top-bar-title-letter-spacing | inherit | |
--rebar-top-bar-title-line-height | 1.15 | |
--rebar-top-bar-title-overflow | hidden | |
--rebar-top-bar-title-padding | 0 6px | |
--rebar-top-bar-title-size | 1.3rem | |
--rebar-top-bar-title-text-overflow | ellipsis | |
--rebar-top-bar-title-weight | 600 | |
--rebar-top-bar-title-white-space | nowrap |