Data Display

Tag

Basic

TagLinkCloseable tagPrevent default

Description

This component is used to display a tag. A tag is a small label that can be used to display metadata or a status.
You can use icons with the icon component, the library will take care of the spacing between the icon and the text and the icon size.


API

Supports global configuration

View the default configuration for this component. Learn more about global configuration.

import { LuiTagModule } from '@lqvrent-workspace/lqvrent-ui/tag';
<lui-tag>Tag</lui-tag>

lui-tag

component Standalone
PropertyDescriptionTypeDefault
[luiMode]Tag mode"default" | "closeable""default"
[luiColor]Color of the tag. Can take a tailwind color (ex: indigo) or any input accepted by LuiColorColorInputdefined in config
[luiSize]Size of the tag"small" | "default" | "large""default"
[luiShape]Shape of the tag"default" | "rounded""default"
[luiFlat]Hides the borders of the tagbooleanfalse
[luiDot]Show a dot and remove the background color to fill the dotbooleanfalse
[luiAriaLabelClose]aria-label attribute for close tag buttonstringClose tag
(luiOnClose)Emitted when close button is clicked. You can use preventDefault on the event.EventEmitter<MouseEvent>-

More examples

Default palette

Slate
Gray
Zinc
Neutral
Stone
Red
Orange
Amber
Yellow
Lime
Green
Emerald
Teal
Cyan
Sky
Blue
Indigo
Violet
Purple
Fuchsia
Pink
Rose

Flat

NeutralNeutral (flat)
RedRed (flat)
OrangeOrange (flat)
YellowYellow (flat)
GreenGreen (flat)
BlueBlue (flat)
PurplePurple (flat)
PinkPink (flat)

Dot

NeutralNeutral (dot)Neutral (dot, flat)
RedRed (dot)Red (dot, flat)
OrangeOrange (dot)Orange (dot, flat)
YellowYellow (dot)Yellow (dot, flat)
GreenGreen (dot)Green (dot, flat)
BlueBlue (dot)Blue (dot, flat)
PurplePurple (dot)Purple (dot, flat)
PinkPink (dot)Pink (dot, flat)

Shapes

NeutralNeutral (rounded)
RedRed (rounded)
OrangeOrange (rounded)
YellowYellow (rounded)
GreenGreen (rounded)
BlueBlue (rounded)
PurplePurple (rounded)
PinkPink (rounded)

Sizes

Neutral (large)Neutral (default)Neutral (small)
Red (large)Red (default)Red (small)
Orange (large)Orange (default)Orange (small)
Yellow (large)Yellow (default)Yellow (small)
Green (large)Green (default)Green (small)
Blue (large)Blue (default)Blue (small)
Purple (large)Purple (default)Purple (small)
Pink (large)Pink (default)Pink (small)

Closeable

NeutralNeutral (closeable)
RedRed (closeable)
OrangeOrange (closeable)
YellowYellow (closeable)
GreenGreen (closeable)
BlueBlue (closeable)
PurplePurple (closeable)
PinkPink (closeable)

Custom color

#4f46e5#4f46e5 (flat)#4f46e5 (dot)#4f46e5 (dot, flat)#4f46e5 (rounded)#4f46e5 (large)#4f46e5 (small)#4f46e5 (closeable)

Icons

Success Error Warning Info
Previous
Popover