Skip to content
On this page

Chip

Overview

Chips are compact elements that represent an input, attribute, or action. They are typically used to display a collection of related values, such as a set of tags. There are three types of chips which has different functionalities: assist, filter, and input.

Assist Chip

<mty-assist-chip>

Assist chips are used to display information that is not interactive. They are typically used to display a collection of related values, such as a set of tags.

Props

NameTypeDefaultDescription
iconString''The name of the icon shown in the chip.
iconTypeString''The type of the mty-icon.
typeString'outlined'The style type of the chip.
disableBoolfalseWhether the chip is disabled.

Slots

NameDescription
DefaultDefault slot for the label.

Emits

NameDescription
clickEmitted when the chip is clicked.

Filter Chip

<mt-filtery-chip>

Filter chips are used to display information that is not interactive. They are typically used to display a collection of related values, such as a set of tags.

Props

NameTypeDefaultDescription
iconString''The name of the icon shown in the chip.
iconTypeString''The type of the mty-icon.
typeString'outlined'The style type of the chip.
disableBoolfalseWhether the chip is disabled.
selectedBoolfalseWhether the chip is selected.

Slots

NameDescription
DefaultDefault slot for the label.

V-model

NametypeDescription
selectedBoolWhether the chip is selected.

Emits

NameDescription
update:selectedEmitted when the chip's selected state is changed.

Input Chip

<mty-input-chip>

Input chips are used to display information that is not interactive. They are typically used to display a collection of related values, such as a set of tags.

Props

NameTypeDefaultDescription
iconString''The name of the icon shown in the chip.
iconTypeString''The type of the mty-icon.
typeString'outlined'The style type of the chip.
disableBoolfalseWhether the chip is disabled.
trailingIconBooltrueWhether the chip has a trailing icon.

Slots

NameDescription
DefaultDefault slot for the label.

Emits

NameDescription
clickEmitted when the chip is clicked.