Dev Design Library

Prompt Input

Allows a user to send a message with file attachments to a large language model. It includes a textarea, file upload capabilities, a submit button, and a dropdown for selecting the model.

Prompt Input preview
Library
AI Elements
Framework
React
Type
component
License
Apache-2.0
Install
npx ai-elements@latest add prompt-input
Files
  • packages/elements/src/prompt-input.tsx
  • packages/shadcn-ui/components/ui/command.tsx
  • packages/shadcn-ui/components/ui/dropdown-menu.tsx
  • packages/shadcn-ui/components/ui/hover-card.tsx
  • packages/shadcn-ui/components/ui/input-group.tsx
  • packages/shadcn-ui/components/ui/select.tsx
  • packages/shadcn-ui/components/ui/spinner.tsx
  • packages/shadcn-ui/components/ui/tooltip.tsx
Source
https://github.com/vercel/ai-elements

Categories

More from AI Elements