AppBarComponent
represents the Essential JS 2 React AppBar Component.
<AppBarComponent></AppBarComponent>
Specifies the color mode that defines the color of the AppBar component. The possible values for this property are as follows:
Light
: Specifies the AppBar in light color.Dark
: Specifies the AppBar in dark color.Primary
: Specifies the AppBar in a primary color.Inherit
: Inherit color from parent for AppBar. AppBar background and colors are inherited from its parent element.Defaults to ‘Light’
string
Accepts single/multiple CSS classes (separated by a space) to be used for AppBar customization.
Defaults to null
boolean
Enable or disable persisting component’s state between page reloads.
Defaults to false
boolean
Enable or disable rendering component in right to left direction.
Defaults to false
Record
Accepts HTML attributes/custom attributes that will be applied to the AppBar element.
Defaults to null
boolean
Defines whether the AppBar position is fixed or not while scrolling the page.
When set to true
, the AppBar will be sticky while scrolling.
Defaults to false
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
Defaults to ”
Specifies the mode of the AppBar that defines the AppBar height. The possible values for this property are as follows:
Regular
: Specifies default height for the AppBar.Prominent
: Specifies longer height for the AppBar to show the longer titles and images, or to provide a stronger presence.Dense
: Specifies compressed (short) height for the AppBar to accommodate all the app bar content in a denser layout.Defaults to ‘Regular’
Specifies the position of the AppBar. The possible values for this property are as follows:
Top
: Position the AppBar at the top.Bottom
: Position the AppBar at the bottom.Defaults to ‘Top’
Removes the control from the DOM and also removes all its related events.
Returns void
Triggers after the AppBar component is created.
Triggers when the AppBar component is destroyed.