Skip to content

SelectionTag ⚠️ Experimental

The SelectionTag component can be used imported from:

Playground

Parameters

Events

This component has events. Check the documentation about how to use the events.

NamePayloadDescription
ngModelChangebooleanReturns the new value of the model
restartedvoidEmitted on value reset
blurvoidEmitted on blur
validatedbooleanEmitted when the validation status changes

Slots

This component has slots. Check the documentation about how to use the slots.

NameTagsDescription
defaultspan

Parameters use

Check the documentation about how to use the parameters.

ngModel

Attention!

If you hardcode this value, it will not be reactive and the selection won't change. Use a variable instead and, ideally, a closed loop.

It's used to set the value of the component and it's reactive.

content

The z-selection-tag parameter accepts a content attribute to set the text label of the component.

Tag label

name

The attribute name will set the name of the component. This is useful when the component is part of a form.

## Flags

checked

This flag is only used to set the initial value with no control loop. Use model to handle the model properly:

disabled

The attribute disabled will block the interaction with the component.

invalid

The invalid attribute will set the component as invalid.

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

CodeSandbox example

Sorry, not available yet ☹️