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 AcvChip from '@/components/chip/chip.vue';
import { IconConsole16 } from '@acronis-platform/icons/console';
</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>Related components
Props
| Prop name | Description | Type | Values | Default |
|---|---|---|---|---|
| icon | Icon name of the Chip | string | - | |
| showClose | Is close icon visible | boolean | - | false |
| showHoverHint | Is hover hint visible | boolean | - | false |
Events
| Event name | Properties | Description |
|---|---|---|
| close | Emitted when the close icon is clicked. |
Slots
| Name | Description | Bindings |
|---|---|---|
| default |