New to KendoReact? Learn about KendoReact Free.
Positioning
The AppBar enables you to specify its position relative to the page content.
Position
To specify where the AppBar will be displayed, use the position property.
The AppBar provides the following options for setting its position:
top(Default)—Positions the AppBar at the top of the content. Setting thepositionproperty totoprequires adding the AppBar component before the page content. The position property applies CSStop: 0style infixed modeand also adds abox-shadowto the bottom of the AppBar.bottom—Positions the AppBar at the bottom of the content. Setting thepositionproperty tobottomrequires adding the AppBar component after the page content. The position property applies CSSbottom: 0style infixed modeand also adds abox-shadowto the top of the AppBar.
Change Theme
Theme
Loading ...
Position Mode
To specify the type of positioning mode used for the AppBar, use the positionMode property.
The AppBar provides the following options for setting the position mode:
static(Default)—Does not position the AppBar in any special way. It is positioned according to the normal flow of the page.sticky—Positions the AppBar based on the user's scroll position. A sticky element toggles between static and fixed CSSpositionproperty, depending on the scroll position.fixed—Positions the AppBar relative to the viewport. It always stays in the same place even if the page is scrolled.
When you render the AppBar with
positionMode={'fixed'}, the dimension of the element doesn't impact the rest of the page. This can cause parts of the content to be invisible, behind the AppBar. In this case either set padding of the page content or setstickyposition mode.
Change Theme
Theme
Loading ...