Skip to content

Tag

An input field which dynamically creates tags, allowing users to add, remove, and manage tags within an input field.

Usage

ts
import { ref } from 'vue';
import { Tag } from '@youcan/alto';
import type { TagItemValue } from '@youcan/alto/types';

const tags = ref<TagItemValue[]>([]);
vue
<Tag v-model="tags" type="text" />

API Reference

Examples

Color

Each tag is assigned a different color.

Users can select tags from a predefined list of options provided in the dropdown.