Skip to content

ToolChip

Stable

A small tag in the message box showing a tool that is on, with a Remove button.

Also known as tool toggle, enabled tool

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Tags you can remove

Web searchDeep research

Pressing Remove takes the tag away.

When to use it

Shows one tool that is switched on, such as Web search, right by the message box. People can see what the assistant will use and remove it in one step.

Made of: Icon · Label · Remove button

Use it for

  • Each tool that is turned on for the next message.
  • A tool that is locked on, shown without a Remove button.

Not for

Do and avoid

Web search
Do. Shows the tool that is on and removes it in one step.
March invoice.pdf
Avoid. A file shown as a tool hides its size and upload state.

Do

  • Show a tag for every tool that is on, next to the text box.
  • Use the same icon as the tool has in ToolMenu.
  • Keep labels to one or two words.

Avoid

  • Do not use it for attached files. Use AttachmentChip.
  • Do not show a tag for a tool that is off.
  • Do not take away the button unless there is another way to turn the tool off.

On a phone

  • The chip is at least 32px tall and shortens a long label with an ellipsis, so it never grows wider than its container.
  • On touch screens the remove button keeps its size and has a 44px tap area, so the chip stays the same size.

Seen in products

  • Claude: the plus menu holds web search, which is switched on with a checkmark.
  • Perplexity: the input bar plus menu holds Deep Research and Create files and apps.
  • The survey's pattern is that active tools show as chips in the composer.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started