Appbar - 图1

Appbar Svelte Component

Appbar Svelte component represents Appbar element.

It is the main app bar with actions on top of the whole app. It is designed to be used in desktop apps with Aurora theme.

Appbar Components

There are following components included:

  • Appbar

Appbar Properties

PropTypeDefaultDescription
<Appbar> properties
innerbooleantrueWhen enabled (by default), it will put all the content within internal appbar-inner element. Disable it only in case you want to put totally custom layout inside
noShadowbooleanfalseDisable shadow rendering for MD theme
noHairlinebooleanfalseDisable appbar bottom thin border (hairline) for iOS theme
innerClassstringAdds additional class to appbar-inner element

Examples

  1. <App>
  2. <Appbar>
  3. <div class="left">
  4. <Button small panelToggle="left" class="display-flex" iconF7="bars" />
  5. <Button small class="display-flex margin-left-half" iconF7="square_list" />
  6. <Button small class="display-flex margin-left-half" iconF7="arrowshape_turn_up_left_fill" />
  7. </div>
  8. <div class="right">
  9. <Searchbar
  10. inline
  11. customSearch
  12. disableButton={false}
  13. />
  14. </div>
  15. </Appbar>
  16. <Panel left>
  17. <Block>
  18. <p>Panel left content</p>
  19. </Block>
  20. </Panel>
  21. <View main>
  22. <Page>
  23. <Navbar title="Appbar" />
  24. <Block strong>
  25. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus sed sagittis dui. Fusce nulla massa, scelerisque vitae auctor in, luctus in ipsum. Sed eu lectus vel magna malesuada lacinia. Ut at vestibulum sem. In semper, arcu pulvinar volutpat fermentum, felis magna fringilla felis, nec volutpat nisi nunc quis ante. Fusce elementum egestas tortor ut porta. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis id commodo elit. Sed massa dui, laoreet a orci sed, egestas vehicula tellus. Nulla pulvinar ornare justo sed finibus. Aliquam hendrerit dui at nulla eleifend, quis feugiat enim aliquam. Nulla facilisi. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
  26. </Block>
  27. </Page>
  28. </View>
  29. </App>
  30. <script>
  31. import {App, Appbar, Panel, Button, Searchbar, View, Page, Navbar, Block} from 'framework7-svelte';
  32. </script>

← Action Sheet / Actions

Badge →