Toolbar React Component

    Toolbar is a fixed (with Fixed and Through layout types) area at the bottom of a screen that contains navigation elements. Toolbar does not have any parts, just plain links inside

    There are following components included:

    • / F7Toolbar

    Toolbar Properties

    Toolbar Events

    • default - element will be inserted as a child of <div class="toolbarInner"> element
    • beforeInner - element will be inserted right before <div class="toolbarInner"> element
    • afterInner - element will be inserted right after <div class="toolbarInner"> element

    Examples

    1. export default class extends React.Component{
    2. constructor() {
    3. this.state = {
    4. isBottom: true,
    5. };
    6. }
    7. render() {
    8. return (
    9. <Page>
    10. <Navbar title="Toolbar" backLink="Back"></Navbar>
    11. <Toolbar position={this.state.isBottom ? 'bottom' : 'top'}>
    12. <Link>Left Link</Link>
    13. <Link>Right Link</Link>
    14. </Toolbar>
    15. <BlockTitle>Toolbar Position</BlockTitle>
    16. <Block>
    17. <p>Toolbar supports both top and bottom positions. Click the following button to change its position.</p>
    18. <p>
    19. </p>
    20. </Block>
    21. <Block>
    22. <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ullam enim quia molestiae facilis laudantium voluptates obcaecati officia cum, sit libero commodi...</p>
    23. </Block>
    24. </Page>
    25. )
    26. }
    27. }
    1. export default class extends React.Component{
    2. constructor() {
    3. this.state = {
    4. isBottom: true,
    5. };
    6. }
    7. render() {
    8. return (
    9. <Page pageContent={false}>
    10. <Navbar title="Tabbar Labels" backLink="Back">
    11. <NavRight>
    12. <Link iconIos="f7:arrow_up_arrow_down_circle_fill" iconAurora="f7:arrow_up_arrow_down_circle_fill" iconMd="material:compare_arrows" onClick={() => this.setState({isBottom: !this.state.isBottom})}></Link>
    13. </NavRight>
    14. </Navbar>
    15. <Toolbar tabbar labels position={this.state.isBottom ? 'bottom' : 'top'}>
    16. <Link tabLink="#tab-1" tabLinkActive text="Tab 1" iconIos="f7:envelope_fill" iconAurora="f7:envelope_fill" iconMd="material:email"></Link>
    17. <Link tabLink="#tab-2" text="Tab 2" iconIos="f7:calendar_fill" iconAurora="f7:calendar_fill" iconMd="material:today"></Link>
    18. <Link tabLink="#tab-3" text="Tab 3" iconIos="f7:cloud_upload_fill" iconAurora="f7:cloud_upload_fill" iconMd="material:file_upload"></Link>
    19. </Toolbar>
    20. <Tabs>
    21. <Tab id="tab-1" className="page-content" tabActive>
    22. <Block>
    23. <p>Tab 1 content</p>
    24. </Block>
    25. </Tab>
    26. <Tab id="tab-2" className="page-content">
    27. <Block>
    28. <p>Tab 2 content</p>
    29. ...
    30. </Block>
    31. </Tab>
    32. <Tab id="tab-3" className="page-content">
    33. <Block>
    34. <p>Tab 3 content</p>
    35. ...
    36. </Block>
    37. </Tab>
    38. </Tabs>
    39. </Page>
    40. )
    41. }
    42. }
    1. export default () => (
    2. <Page hideToolbarOnScroll>
    3. <Navbar title="Hide Toolbar On Scroll" backLink="Back"></Navbar>
    4. <Toolbar bottom-md>
    5. <Link>Left Link</Link>
    6. <Link>Right Link</Link>
    7. </Toolbar>
    8. <Block strong>
    9. <p>Toolbar will be hidden if you scroll bottom</p>
    10. </Block>
    11. <Block>
    12. <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos maxime incidunt id ab culpa ipsa omnis eos, vel excepturi officiis neque illum perferendis dolorum magnam rerum natus dolore nulla ex.</p>
    13. ...
    14. </Block>
    15. );