v-ons-toolbar

Toolbar component that can be used with navigation. Left, center and right containers can be specified by class names. This component will automatically display as a Material Design toolbar when running on Android devices.

Tutorial

Adding a toolbar

Most mobile apps have a toolbar at the top containing a header text and maybe some buttons.

The VOnsToolbar component displays a navigation bar on the top of a VOnsPage component. It is separated into three sections (left, center and right) in order to let the buttons and title be layouted a beautiful way.

<v-ons-toolbar>
  <div class="left">
    Left part
  </div>
  <div class="center">
    Title here
  </div>
  <div class="right">
    Right part
  </div>
</v-ons-toolbar>

See also

Name Type Description
inline Boolean Display the toolbar as an inline element. Optional.
modifier Boolean The appearance of the toolbar. Optional.
static Boolean Static toolbars are not animated by ons-navigator when pushing or popping pages. This can be useful to improve performance in some situations. Optional.
Name Description
material Material Design toolbar.
transparent Transparent toolbar.
cover-content Displays the toolbar on top of the page’s content. Should be combined with transparent modifier.
noshadow Toolbar without shadow.

Need Help?

If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.

For bug reports and feature requests use our GitHub Issues page.