# Tool Chip

> Compact chips for tool calls and their status.

Registry name: `tool-chip`. HTML docs: https://ui.anuragroy.dev/component/tool-chip.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/tool-chip.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/tool-chip.json`.

Registry JSON: https://ui.anuragroy.dev/r/tool-chip.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/tool-chip.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import {
  ToolChip,
  ToolChipGroup,
  ToolChipLabel,
  ToolChipMeta
} from "@/components/ui/tool-chip"
```

## Usage

```tsx
import {
  ToolChip,
  ToolChipGroup,
  ToolChipLabel,
  ToolChipMeta,
} from "@/components/ui/tool-chip"

export function Example() {
  return (
    <ToolChipGroup>
      <ToolChip status="success">
        <ToolChipLabel>read_file</ToolChipLabel>
        <ToolChipMeta>4 files</ToolChipMeta>
      </ToolChip>
    </ToolChipGroup>
  )
}
```

## API

### ToolChip

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `status` | "pending" \| "running" \| "success" \| "error" | "success" |  |

## Notes

- `ToolChipIcon` is also exported.

## See also

- [HTML page](https://ui.anuragroy.dev/component/tool-chip): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/tool-chip.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
