Skip to content

Chips input #1636

May 2, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi!

You can change the default "Example label" in two ways:

  1. by using data attributes: data-te-label-text="New label name"
  2. by changing the default options while initializing the compoment: new ChipsInput(myChips, { labelText: "New label name" })

Checkout all the events that are emitted for ChipsInput (and other cool infos) in our API section:
https://tailwind-elements.com/docs/standard/components/chips/#docsTabsAPI

You can use them like this:

const myChips = document.getElementById('my-chips');

myChips.addEventListener('add.te.chips', () => {
  console.log('new chip added');
});

Best Regards!

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@memiljamel
Comment options

@juujisai
Comment options

@memiljamel
Comment options

@juujisai
Comment options

Answer selected by filipkappa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants