CommonButtonGroup.story.vue 614 B

12345678910111213141516171819202122232425
  1. <!-- Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import CommonButtonGroup from './CommonButtonGroup.vue'
  4. // eslint-disable-next-line no-alert
  5. const alert = () => window.alert('click')
  6. </script>
  7. <template>
  8. <Story>
  9. <CommonButtonGroup
  10. :options="[
  11. { label: 'link %s', labelPlaceholder: ['text'], link: '/example' },
  12. { label: 'button', onAction: alert },
  13. {
  14. label: 'with-icon',
  15. onAction: alert,
  16. icon: 'mobile-home',
  17. disabled: true,
  18. },
  19. ]"
  20. />
  21. </Story>
  22. </template>