AI 提示输入条

New

紧凑的积分感知 AI 输入条:可关闭的积分横幅;流式进行中再提交会入队,可插队(Steer)、编辑或删除;输入 / 唤起技能面板并把命令凝固成可移除的技能 chip;附件演示、联网搜索开关、模型菜单与发送⇄停止变形按钮。

490Credits Remaining

安装

用 shadcn CLI 添加,或手动复制源码。

$ bunx --bun shadcn add @uilab/prompt-bar

API 参考

skills?
PromptBarSkill[]

Slash-triggered skills — typing "/" opens the picker.

[]
models?
PromptBarModel[]
[]
defaultModelId?
string
credits?
number

Shows the credits banner above the bar when provided (including 0).

onUpgrade?
(() => void)
placeholder?
string
What do you want to do today?
onSubmit?
((payload: { text: string; skillId?: string; attachments: string[]; webSearch: boolean; modelId: string; }) => void)
className?
string

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.