The React AppBar, also known as an action bar or nav bar, displays information and actions related to the current application screen. It is used to show branding, screen titles, navigation, and actions. The component supports height mode, color mode, positioning, and more.
Display the AppBar with predefined sizes: normal, longer, and shorter. The size of an AppBar can be changed using the regular, prominent, and dense properties.
The AppBar has predefined background colors for different visual representations: light, dark, primary, and inherit.
A row of content can be aligned horizontally at the top or bottom of the AppBar.
AppBar can stick to the top of a page while scrolling the content.
The React AppBar component aligns the content using a spacer and separator.
The AppBar layout will adjust automatically to the current screen size.
Developers can control the appearance and behaviors of the AppBar component using a rich set of APIs.
The React AppBar component supports built-in themes: Material, Bootstrap, Fabric (Office 365), Tailwind CSS, and high contrast. Users can customize these built-in themes or create new themes to achieve their desired look and feel by either simply overriding SASS variables or using our Theme Studio application.
Easily get started with the React AppBar using a few simple lines of TSX code example as demonstrated below. Also explore our React AppBar example, which shows how to render and configure an AppBar in React.
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { AppBarComponent } from "@syncfusion/ej2-react-navigations";
import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
import { SampleBase } from '../common/sample-base';
export class Default extends SampleBase<{}, {}> {
render() {
return (
<div className='control-pane'>
<div className='control-section'>
<AppBarComponent colorMode="Primary">
<ButtonComponent cssClass='e-inherit' iconCss='e-icons e-menu'></ButtonComponent>
<span className="regular" style=>React AppBar</span>
<div className="e-appbar-spacer"></div>
<ButtonComponent cssClass='e-inherit'>FREE TRIAL</ButtonComponent>
</AppBarComponent>
</div>
</div>
)
}
}
The AppBar component is also available in our Blazor, Angular, Vue, and JavaScript frameworks. Check out the component on other platforms using these links:
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.