arrow.ts 583 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { FormKitSchemaNode } from '@formkit/core'
  3. import { createSection } from '@formkit/inputs'
  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. )