Context Chip

Small toggle chip for picking context in AI prompts or filters, with an active accent state and hover styling. Passes through all native button props.

src/registry/ui/context-chip.tsx/r/context-chip.json

Active

Installation#

bash
npx shadcn@latest add @minidev/context-chip

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/context-chip.json

Usage#

tsx
import { ContextChip } from "@/components/ui/context-chip"

export function Example() {
  return (
    <ContextChip active>Files</ContextChip>
  )
}

API reference#

ContextChip props
PropTypeDefault
activeboolean-

Also accepts every prop of <button>, passed through to the root element.

All AI chat UI components for React