New version 1.30.0 is now available 🎉 Introducing a useful command to search for component usage.

Powerful suite of Blade components for TALL Stack apps.

Form Tag

>= v1.10

Form tag component.

In desktop devices the tags can be inserted by pressing the enter or comma keys, and can be removed by pressing the backspace key. In mobile devices the tags can only be inserted using enter key.

<x-tag />
Select your preferred frameworks
<x-tag label="Frameworks"
hint="Select your preferred frameworks" />

An option to limit the number of tags that can be added.

Select your preferred frameworks
<x-tag label="Frameworks"
hint="Select your preferred frameworks"
:limit="2" />

An option to set a single-character prefix.

<x-tag prefix="#" />

The prefix must be a single character.

<!--
For the erase event the correct index is
$event.detail.tags instead of $event.detail.tag
-->
 
<x-tag ...
x-on:add="alert(`Introduced: ${$event.detail.tag}`)"
x-on:remove="alert(`Removed: ${$event.detail.tag}`)"
x-on:erase="alert(`Erased: ${$event.detail.tags}`)" />

An option to not show validation error message.

<x-tag invalidate />

Code highlighting provided by Torchlight