DeletableChip.vue 552 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <span class="chip">
  3. <i class="opacity-75 material-icons">attachment</i>
  4. <span class="max-w-64 px-2 truncate"><slot></slot></span>
  5. <ButtonSecondary
  6. class="rounded close-button"
  7. svg="x"
  8. @click.native="$emit('chip-delete')"
  9. />
  10. </span>
  11. </template>
  12. <style scoped lang="scss">
  13. .chip {
  14. @apply inline-flex;
  15. @apply items-center;
  16. @apply justify-center;
  17. @apply rounded;
  18. @apply pl-2;
  19. @apply pr-0.5;
  20. @apply bg-transparent;
  21. @apply border border-divider;
  22. }
  23. .close-button {
  24. @apply p-0.5;
  25. }
  26. </style>