templUI Pro coming soon  

50% OFF Join Waitlist

Tags Input

Tags input field that allows users to enter and edit tags.

Source
TailwindCSS
Vanilla JS

127.0.0.1/32

Installation

  1. Install the component

    templui add tagsinput
  2. Add the JavaScript to your layout

    @tagsinput.Script()
    

    Call this template in your base layout file (e.g., in the <head> section).

Examples

Disabled

127.0.0.1/32

With Label

127.0.0.1/32

Form

Enter a network in format like '1.1.1.1/32'

Please enter a valid network in format like '1.1.1.1/32'

API Reference

Required parameter
Hover for description

TagsInput

Interactive input component for managing a collection of tags.

Name Type Default
ID
string
-
Name
string
-
Value
[]string
[]
Placeholder
string
-
Class
string
-
HasError
bool
false
Attributes
templ.Attributes
-
Disabled
bool
false
Readonly
bool
false