Stop Generating

Stop generating button with a filled square icon and an onClick handler, for cancelling a streaming AI response mid-answer in chat interfaces built with React.

src/registry/ui/stop-generating.tsx/r/stop-generating.json

Default

Installation#

bash
npx shadcn@latest add @minidev/stop-generating

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/stop-generating.json

Usage#

tsx
import { StopGenerating } from "@/components/ui/stop-generating"

export function Example() {
  return (
    <StopGenerating />
  )
}

API reference#

StopGenerating props
PropTypeDefault
onClick() => void-
classNamestring-

Dependencies#

npm

lucide-react

Built from

Examples#

All AI chat UI components for React

Learn more