Skip to content

Add TagsInput Component #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 27, 2025
Merged

Add TagsInput Component #254

merged 3 commits into from
Jun 27, 2025

Conversation

derkan
Copy link
Contributor

@derkan derkan commented Jun 22, 2025

✨ Add TagsInput Component

This PR introduces a reusable TagsInput component designed to handle a list of tags with flexible user interaction. The component includes the following features:

✅ Features

  • Add and Remove Tags: Users can dynamically add or remove tags from the list.
  • []string Value Support: The component accepts and manages tag values as a []string array for straightforward binding and manipulation.
  • disabled Attribute Support: When disabled, the input is non-interactive, preventing tag modification.
  • readonly Attribute Support: Allows rendering the tags in a read-only state without edit capabilities.
  • Enforces Uniqueness: Automatically ensures the list of tags remains unique by preventing duplicate entries.

This component is ideal for use cases involving user-defined lists, tag inputs, or any similar multi-entry form fields.

derkan and others added 2 commits June 23, 2025 00:22
…make js file more readable, use some nativ components, add label and form page examples, add component to sitemap
@axzilla
Copy link
Member

axzilla commented Jun 27, 2025

Hey @derkan, thanks so much: awesome work as always!

I've made a few changes, feel free to check it out and let me know if you agree so I can merge it!

Thanks!

@derkan
Copy link
Contributor Author

derkan commented Jun 27, 2025

@axzilla thanks for reviewing and patching for new component structure. Looks good, please merge.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@axzilla axzilla merged commit 1abf65d into templui:main Jun 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants