Subnavbar - 图1

Subnavbar React Component

Subnavbar is useful when you need to put any additional elements into Navbar, like Tab Links or Search Bar. It also remains visible when Navbar hidden.

Subnavbar React component represents Subnavbar component.

Subnavbar Components

There are following components included:

  • **Subnavbar** / **F7Subnavbar**

Subnavbar Properties

PropTypeDefaultDescription
<Subnavbar> properties
slidingbooleanEnables “sliding” effect
titlestringSubnvabar title
innerbooleantrueWhen enabled the additional “subnavbar-inner” wrapper element will be added

Examples

  1. export default () => (
  2. <Page pageContent={false}>
  3. <Navbar title="Subnavbar">
  4. <Subnavbar>
  5. <Segmented raised>
  6. <Button tabLink="#tab1" tabLinkActive>Tab 1</Button>
  7. <Button tabLink="#tab2">Tab 2</Button>
  8. </Segmented>
  9. </Subnavbar>
  10. </Navbar>
  11. <Tabs>
  12. <Tab id="tab1" tabActive className="page-content">
  13. <Block>
  14. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nisi nisi, tincidunt ut eleifend non, sagittis a elit. Sed consequat odio at leo varius viverra...</p>
  15. </Block>
  16. </Tab>
  17. <Tab id="tab2" className="page-content">
  18. <Block>
  19. <p>Donec iaculis posuere massa sed dignissim. Praesent id nibh nec massa mollis egestas. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas...</p>
  20. </Block>
  21. </Tab>
  22. </Tabs>
  23. </Page>
  24. )