AppBar

The AppBar component is a versatile UI element typically used at the top of a screen to display important contextual information and actions. It supports customization for alignment, size, style, mode, and additional elements like navigation icons and trailing components.

TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab

ss

App TitleApp Sub Title

ss

App TitleApp Sub Title

Usage

import { AppBar } from 'bio-bind-ui';
<AppBar
  alignment='left'
  title='App Title'
  subTitle='App Sub Title'
  trailing={
    <>
      {/* @ts-ignore */}
      <Like size={24} />
      {/* @ts-ignore */}
      <ShoppingCart size={24} />
      {/* @ts-ignore */}
      <MoreOne size={24} />
    </>
  }
  navIcon={
    <>
      {/* @ts-ignore */}
      <ArrowLeft size={24} />
      <Avatar mode={mode} size='sm' username='sam s' />
    </>
  }
  mode={'light'}
  variant={'neutral'}
/>

Examples

Mode (optional)

Use mode to use dark or light

ss

App TitleApp Sub Title

ss

App TitleApp Sub Title

Variant (optional)

Use variant rating by using stars or thumb icon.

ss

App TitleApp Sub Title

Props

PropsRequiredDefaultTypeDescription
idfalse-stringThe unique identifier for the component.
alignmentfalseleftleft, centerThe alignment of the content inside the component.
variantfalseneutralneutral,primaryThe variant style of the component.
stylefalse-CSSPropertiesCustom CSS properties for inline styling.
modefalselightlight, darkThe theme mode of the component (light or dark).
titlefalse-stringThe title text to be displayed in the component.
subTitlefalse-stringThe subtitle text to be displayed under the title.
trailingfalse-ReactNodeElement to display on the trailing side of the component.
navIconfalse-ReactNodeIcon element to display for navigation.
BIND © Biofarma Innovate Next-level Design .