Skip to Content
SmartUI

Top Bar

Top bar of an app screen: back, title and up to two actions.

My bookings

My bookings

Usage

import { TopBar } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • Every app screen.

When not to use

  • The web dashboard. Use Navbar and Page Header.

Props

PropTypeDefaultDescription
titlestringrequired
titleSize'default' | 'large''default'
isScrolledbooleanfalseCollapses the large title and turns the bar to glass.
onBack() => void-
actionsReactNode-

Accessibility

  • The back button names where it goes.

On this page