Skip to content

ACV Chip

Chips or badges are small, interactive elements that represent a piece of information, such as a tag, a category, or a status.

Basic usage

Text
Text
Text
Text
Source code
vue
<script setup>
  import { IconConsole16 } from '@acronis-platform/icons/console';
  import AcvChip from '@/components/chip/chip.vue';
</script>

<template>
  <AcvChip>Text</AcvChip>

  <AcvChip :icon="IconConsole16">
    Text
  </AcvChip>

  <AcvChip show-close>
    Text
  </AcvChip>

  <AcvChip
    :icon="IconConsole16"
    show-close
  >
    Text
  </AcvChip>
</template>

Long text with ellipsis

Long textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textLong textNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreakNobreak
Source code
vue
<script setup>
  import AcvChip from '@/components/chip/chip.vue';

  const text = 'Long text'.repeat(20) + 'Nobreak'.repeat(30);
</script>

<template>
  <AcvChip>{{ text }}</AcvChip>
</template>

Props

Prop nameDescriptionTypeValuesDefault
iconIcon name of the Chipstring-
showCloseIs close icon visibleboolean-false
showHoverHintIs hover hint visibleboolean-false

Events

Event namePropertiesDescription
closeEmitted when the close icon is clicked.

Slots

NameDescriptionBindings
default

MIT Licensed