CommonSectionMenuLink.story.vue 557 B

1234567891011121314151617181920212223
  1. <!-- Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import CommonSectionMenuLink from './CommonSectionMenuLink.vue'
  4. const alert = window.alert?.bind
  5. </script>
  6. <template>
  7. <Story>
  8. <Variant title="Default">
  9. <CommonSectionMenuLink
  10. link="/"
  11. icon="mobile-home"
  12. information="33"
  13. label="Home"
  14. />
  15. </Variant>
  16. <Variant title="Action">
  17. <CommonSectionMenuLink label="Clik Me" @click="alert('Hello World')" />
  18. </Variant>
  19. </Story>
  20. </template>