arrow.ts 584 B

123456789101112131415161718192021222324252627
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { createSection } from '@formkit/inputs'
  3. import type { FormKitSchemaNode } from '@formkit/core'
  4. export const arrow = createSection(
  5. 'arrow',
  6. () =>
  7. ({
  8. $el: 'div',
  9. attrs: {
  10. class: '$classes.arrow',
  11. },
  12. children: [
  13. {
  14. $cmp: 'CommonIcon',
  15. props: {
  16. size: 'base',
  17. class: 'shrink-0',
  18. name: '$arrowIconName',
  19. decorative: true,
  20. },
  21. },
  22. ],
  23. }) as FormKitSchemaNode,
  24. )