{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "chat-input",
  "type": "registry:ui",
  "title": "Chat Input",
  "description": "A rich chat message box with @ agents, / skills, # files, and model picks.",
  "categories": [
    "agent-patterns"
  ],
  "dependencies": [
    "@hugeicons/core-free-icons@4.4.0",
    "@hugeicons/react@1.1.10",
    "@tiptap/core@3.35.0",
    "@tiptap/pm@3.35.0",
    "@tiptap/suggestion@3.35.0"
  ],
  "registryDependencies": [
    "https://sprout.tulipfarm.ai/r/sprout-base.json",
    "https://sprout.tulipfarm.ai/r/attachment.json",
    "https://sprout.tulipfarm.ai/r/button.json",
    "https://sprout.tulipfarm.ai/r/command.json",
    "https://sprout.tulipfarm.ai/r/dropdown-menu.json",
    "https://sprout.tulipfarm.ai/r/file-viewer.json",
    "https://sprout.tulipfarm.ai/r/hover-card.json",
    "https://sprout.tulipfarm.ai/r/input-group.json",
    "https://sprout.tulipfarm.ai/r/mention-list.json",
    "https://sprout.tulipfarm.ai/r/model-selector.json",
    "https://sprout.tulipfarm.ai/r/popover.json",
    "https://sprout.tulipfarm.ai/r/rich-text-editor.json",
    "https://sprout.tulipfarm.ai/r/tooltip.json"
  ],
  "files": [
    {
      "path": "registry/sprout/components/ui/chat-input.tsx",
      "type": "registry:ui",
      "target": "components/ui/chat-input.tsx",
      "content": "'use client';\n\nimport {\n  useEffect,\n  useId,\n  useLayoutEffect,\n  useMemo,\n  useRef,\n  useState,\n  type CSSProperties,\n  type ReactNode,\n} from 'react';\nimport { Extension, Node, mergeAttributes, type Extensions } from '@tiptap/core';\nimport { PluginKey } from '@tiptap/pm/state';\nimport Suggestion, { exitSuggestion, type SuggestionKeyDownProps, type SuggestionProps } from '@tiptap/suggestion';\nimport { AddIcon } from '@/lib/sprout/icons/add-icon';\nimport { ArrowUpIcon } from '@/lib/sprout/icons/arrow-up-icon';\nimport { ChevronDownIcon } from '@/lib/sprout/icons/chevron-down-icon';\nimport { CloseIcon } from '@/lib/sprout/icons/close-icon';\nimport { FolderIcon } from '@/lib/sprout/icons/folder-icon';\nimport { SlidersIcon } from '@/lib/sprout/icons/sliders-icon';\nimport { chatReferenceChars } from '@/lib/sprout/chat-reference';\nimport { cn } from '@/lib/sprout/classes';\nimport {\n  ReferenceHintBody,\n  ReferencePeek,\n  referenceDetail,\n  referenceHover,\n  type ChatReferenceDetail,\n  type ChatReferenceResolved,\n} from '@/lib/sprout/reference-hint';\nimport { FileAttachment, type AttachmentFile } from '@/components/ui/attachment';\nimport { FileViewer, type ViewableFile } from '@/components/ui/file-viewer';\nimport { HoverCard } from '@/components/ui/hover-card';\nimport { Button } from '@/components/ui/button';\nimport { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '@/components/ui/command';\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuGroup,\n  DropdownMenuItem,\n  DropdownMenuLabel,\n  DropdownMenuRadioGroup,\n  DropdownMenuRadioItem,\n  DropdownMenuTrigger,\n} from '@/components/ui/dropdown-menu';\nimport { InputGroup, InputGroupAddon, InputGroupButton } from '@/components/ui/input-group';\nimport { MentionList, MentionOption, MentionStatus } from '@/components/ui/mention-list';\nimport { ModelSelector, type ModelSelectorModel } from '@/components/ui/model-selector';\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';\nimport {\n  RichTextEditor,\n  type RichTextEditorHandle,\n  type RichTextKeyword,\n  type RichTextValue,\n} from '@/components/ui/rich-text-editor';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';\n\nexport const chatInputReferenceKindNames = ['agent', 'skill', 'file'] as const;\nexport const chatInputStatusNames = ['idle', 'streaming'] as const;\n\nexport type ChatInputReferenceKind = (typeof chatInputReferenceKindNames)[number];\nexport type ChatInputStatus = (typeof chatInputStatusNames)[number];\nexport type ChatInputReference = ChatReferenceDetail;\nexport type ChatInputResolvedReference = ChatReferenceResolved;\n\nexport interface ChatInputSuggestion {\n  id: string;\n  label: string;\n  description?: string | undefined;\n  media?: ReactNode;\n  file?: ViewableFile | undefined;\n}\n\nexport type ChatInputSource = (query: string) => ChatInputSuggestion[] | Promise<ChatInputSuggestion[]>;\n\nexport interface ChatInputAction {\n  id: string;\n  label: string;\n  description?: string | undefined;\n  icon?: ReactNode;\n  onSelect: () => void;\n}\n\nexport interface ChatInputOption {\n  id: string;\n  label: string;\n  description?: string | undefined;\n  icon?: ReactNode;\n  color?: string | undefined;\n}\n\nexport type ChatInputIntegration = RichTextKeyword;\n\nexport type ChatInputModel = ModelSelectorModel;\n\nexport interface ChatInputPrompt {\n  id: string;\n  label: string;\n  icon?: ReactNode;\n  prompt?: string | undefined;\n}\n\nexport interface ChatInputProps {\n  value: RichTextValue;\n  onValueChange: (value: RichTextValue) => void;\n  onSend: () => void;\n  onStop?: (() => void) | undefined;\n  status?: ChatInputStatus | undefined;\n  placeholder?: string | undefined;\n  streamingPlaceholder?: string | undefined;\n  minRows?: number | undefined;\n  disabled?: boolean | undefined;\n  label?: string | undefined;\n  agents?: ChatInputSource | undefined;\n  skills?: ChatInputSource | undefined;\n  files?: ChatInputSource | undefined;\n  integrations?: readonly ChatInputIntegration[] | undefined;\n  resolveReference?: ((reference: ChatInputReference) => ChatInputResolvedReference | undefined) | undefined;\n  onConnectIntegration?: ((integration: ChatInputIntegration) => void) | undefined;\n  onIntegrationAccountChange?:\n    | ((integration: ChatInputIntegration, accountId: string) => void | Promise<unknown>)\n    | undefined;\n  attachments?: AttachmentFile[] | undefined;\n  onRemoveAttachment?: ((id: string) => void) | undefined;\n  attachActions?: ChatInputAction[] | undefined;\n  modes?: ChatInputOption[] | undefined;\n  mode?: string | null | undefined;\n  onModeChange?: ((mode: string | null) => void) | undefined;\n  projects?: ChatInputOption[] | undefined;\n  project?: string | undefined;\n  onProjectChange?: ((project: string) => void) | undefined;\n  models?: ChatInputModel[] | undefined;\n  model?: string | undefined;\n  onModelChange?: ((model: string) => void) | undefined;\n  prompts?: ChatInputPrompt[] | undefined;\n  onPromptSelect?: ((prompt: ChatInputPrompt) => void) | undefined;\n  className?: string | undefined;\n}\n\nconst triggers = {\n  agent: { char: chatReferenceChars.agent, label: 'Agents', empty: 'No agents match.' },\n  skill: { char: chatReferenceChars.skill, label: 'Skills', empty: 'No skills match.' },\n  file: { char: chatReferenceChars.file, label: 'Files', empty: 'No files match.' },\n} as const satisfies Record<ChatInputReferenceKind, { char: string; label: string; empty: string }>;\n\ntype PanelState = {\n  kind: ChatInputReferenceKind;\n  items: ChatInputSuggestion[];\n  active: number;\n  select: (index: number) => void;\n} | null;\n\nconst referenceNode = Node.create({\n  name: 'chatReference',\n  inline: true,\n  group: 'inline',\n  atom: true,\n  selectable: true,\n  addAttributes() {\n    return {\n      kind: {\n        default: 'file',\n        rendered: false,\n        parseHTML: el => el.getAttribute('data-chat-reference'),\n      },\n      id: {\n        default: '',\n        rendered: false,\n        parseHTML: el => el.getAttribute('data-id'),\n      },\n      label: {\n        default: '',\n        rendered: false,\n        parseHTML: el => el.getAttribute('data-label'),\n      },\n      description: {\n        default: null,\n        rendered: false,\n        parseHTML: el => el.getAttribute('data-description'),\n      },\n    };\n  },\n  parseHTML() {\n    return [{ tag: 'span[data-chat-reference]' }];\n  },\n  renderHTML({ node, HTMLAttributes }) {\n    const kind = node.attrs.kind as ChatInputReferenceKind;\n    return [\n      'span',\n      mergeAttributes(HTMLAttributes, {\n        'data-chat-reference': kind,\n        'data-id': node.attrs.id,\n        'data-label': node.attrs.label,\n        'data-description': node.attrs.description ?? undefined,\n        class: 'sprout-chat-input-reference',\n      }),\n      `${triggers[kind]?.char ?? ''}${node.attrs.label}`,\n    ];\n  },\n  renderText({ node }) {\n    const kind = node.attrs.kind as ChatInputReferenceKind;\n    return `${triggers[kind]?.char ?? ''}${node.attrs.label}`;\n  },\n});\n\nconst linkShortcut = Extension.create({\n  name: 'chatInputLinkShortcut',\n  addKeyboardShortcuts() {\n    return {\n      'Mod-k': ({ editor }) => {\n        if (editor.isActive('link')) return editor.chain().focus().unsetLink().run();\n        const { from, to } = editor.state.selection;\n        const text = editor.state.doc.textBetween(from, to).trim();\n        const href = /^\\S+@\\S+\\.\\S+$/.test(text)\n          ? `mailto:${text}`\n          : /^(https?:\\/\\/|www\\.)\\S+$/i.test(text)\n            ? text.startsWith('www.')\n              ? `https://${text}`\n              : text\n            : null;\n        if (!href) return false;\n        return editor.chain().focus().setLink({ href }).run();\n      },\n    };\n  },\n});\n\nfunction triggerExtension(\n  kind: ChatInputReferenceKind,\n  source: { current: ChatInputSource | undefined },\n  onState: (state: PanelState) => void,\n  picked: Map<string, ChatInputSuggestion>,\n) {\n  const key = new PluginKey(`chatInput-${kind}`);\n  return Extension.create({\n    name: `chatInput-${kind}`,\n    addProseMirrorPlugins() {\n      return [\n        Suggestion<ChatInputSuggestion>({\n          editor: this.editor,\n          pluginKey: key,\n          char: triggers[kind].char,\n          allowSpaces: false,\n          items: async ({ query }) => (await source.current?.(query)) ?? [],\n          command: ({ editor, range, props }) => {\n            picked.set(`${kind}:${props.id}`, props);\n            return editor\n              .chain()\n              .focus()\n              .insertContentAt(range, [\n                {\n                  type: 'chatReference',\n                  attrs: { kind, id: props.id, label: props.label, description: props.description ?? null },\n                },\n                { type: 'text', text: ' ' },\n              ])\n              .run();\n          },\n          render: () => {\n            let current: SuggestionProps<ChatInputSuggestion> | null = null;\n            let active = 0;\n            const publish = () => {\n              if (!current) return;\n              const items = current.items;\n              onState({\n                kind,\n                items,\n                active: Math.min(active, Math.max(0, items.length - 1)),\n                select: index => {\n                  const item = items[index];\n                  if (item) current?.command(item);\n                },\n              });\n            };\n            return {\n              onStart: props => {\n                current = props;\n                active = 0;\n                publish();\n              },\n              onUpdate: props => {\n                current = props;\n                active = 0;\n                publish();\n              },\n              onKeyDown: ({ event, view }: SuggestionKeyDownProps) => {\n                if (event.key === 'Escape') {\n                  exitSuggestion(view, key);\n                  return true;\n                }\n                const count = current?.items.length ?? 0;\n                if (!count) return false;\n                if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n                  active = (active + (event.key === 'ArrowDown' ? 1 : count - 1)) % count;\n                  publish();\n                  return true;\n                }\n                if ((event.key === 'Enter' && !event.shiftKey) || event.key === 'Tab') {\n                  current!.command(current!.items[active]!);\n                  return true;\n                }\n                return false;\n              },\n              onExit: () => {\n                current = null;\n                onState(null);\n              },\n            };\n          },\n        }),\n      ];\n    },\n  });\n}\n\nfunction firstLine(element: HTMLElement) {\n  return { getBoundingClientRect: () => element.getClientRects()[0] ?? element.getBoundingClientRect() };\n}\n\nfunction hasContent(node: RichTextValue): boolean {\n  if (node.type === 'chatReference') return true;\n  if (node.text?.trim()) return true;\n  return node.content?.some(hasContent) ?? false;\n}\n\nfunction textDoc(text: string): RichTextValue {\n  return {\n    type: 'doc',\n    content: [{ type: 'paragraph', content: [{ type: 'text', text }] }],\n  };\n}\n\nfunction OptionPicker({\n  label,\n  search,\n  options,\n  value,\n  onChange,\n  disabled,\n  icon,\n  align,\n}: {\n  label: string;\n  search: string;\n  options: ChatInputOption[];\n  value: string | undefined;\n  onChange: (id: string) => void;\n  disabled: boolean;\n  icon: (option: ChatInputOption | undefined) => ReactNode;\n  align: 'start' | 'end';\n}) {\n  const [open, setOpen] = useState(false);\n  const selected = options.find(option => option.id === value);\n  return (\n    <Popover open={open} onOpenChange={setOpen}>\n      <PopoverTrigger\n        render={\n          <InputGroupButton\n            aria-label={`${label}: ${selected?.label ?? 'None'}`}\n            disabled={disabled}\n            className=\"sprout-chat-input-picker\"\n          />\n        }\n      >\n        {icon(selected)}\n        <span className=\"sprout-chat-input-picker-label\">{selected?.label ?? label}</span>\n        <ChevronDownIcon size=\"xs\" aria-hidden=\"true\" />\n      </PopoverTrigger>\n      <PopoverContent size=\"picker\" side=\"top\" align={align} sideOffset={8} className=\"sprout-chat-input-menu\">\n        <Command>\n          <CommandInput aria-label={search} placeholder={`${search}…`} />\n          <CommandList>\n            <CommandEmpty>No matches.</CommandEmpty>\n            <CommandGroup heading={label}>\n              {options.map(option => (\n                <CommandItem\n                  key={option.id}\n                  value={`${option.label} ${option.description ?? ''}`}\n                  data-checked={option.id === value}\n                  onSelect={() => {\n                    onChange(option.id);\n                    setOpen(false);\n                  }}\n                >\n                  {icon(option)}\n                  <span className=\"sprout-chat-input-option-text\">\n                    <span>{option.label}</span>\n                    {option.description && (\n                      <span className=\"sprout-chat-input-option-description\">{option.description}</span>\n                    )}\n                  </span>\n                </CommandItem>\n              ))}\n            </CommandGroup>\n          </CommandList>\n        </Command>\n      </PopoverContent>\n    </Popover>\n  );\n}\n\nexport function ChatInput({\n  value,\n  onValueChange,\n  onSend,\n  onStop,\n  status = 'idle',\n  placeholder = 'Ask anything, @agents, /skills, #files…',\n  streamingPlaceholder = 'Working on your request…',\n  minRows,\n  disabled = false,\n  label = 'Message',\n  agents,\n  skills,\n  files,\n  integrations,\n  resolveReference,\n  onConnectIntegration,\n  onIntegrationAccountChange,\n  attachments = [],\n  onRemoveAttachment,\n  attachActions,\n  modes,\n  mode = null,\n  onModeChange,\n  projects,\n  project,\n  onProjectChange,\n  models,\n  model,\n  onModelChange,\n  prompts,\n  onPromptSelect,\n  className,\n}: ChatInputProps) {\n  const editor = useRef<RichTextEditorHandle>(null);\n  const form = useRef<HTMLFormElement>(null);\n  const listId = useId();\n  const [panel, setPanel] = useState<PanelState>(null);\n  const [panelBelow, setPanelBelow] = useState(false);\n  const picked = useRef(new Map<string, ChatInputSuggestion>()).current;\n  type ReferenceHint = {\n    anchor: HTMLElement;\n    reference: ChatReferenceDetail;\n    resolved: ChatReferenceResolved | undefined;\n  };\n  const [referenceHint, setReferenceHint] = useState<ReferenceHint | null>(null);\n  const [viewing, setViewing] = useState<{ file: ViewableFile; open: boolean } | null>(null);\n  const referenceTimer = useRef<ReturnType<typeof setTimeout>>(undefined);\n  useEffect(() => () => clearTimeout(referenceTimer.current), []);\n  const referenceAt = (target: EventTarget | null): ReferenceHint | null => {\n    const anchor =\n      target instanceof Element\n        ? target.closest<HTMLElement>('.sprout-rich-text-editor-content .sprout-chat-input-reference')\n        : null;\n    if (!anchor) return null;\n    const reference = referenceDetail({\n      kind: anchor.dataset.chatReference,\n      id: anchor.dataset.id,\n      label: anchor.dataset.label,\n      description: anchor.dataset.description,\n    });\n    const resolved = picked.get(`${reference.kind}:${reference.id}`) ?? resolveReference?.(reference);\n    if (reference.kind === 'file') anchor.toggleAttribute('data-openable', !!resolved?.file);\n    return { anchor, reference, resolved };\n  };\n  const hoverReference = (target: EventTarget | null) => {\n    const next = referenceAt(target);\n    clearTimeout(referenceTimer.current);\n    if (next && referenceHover(next.reference, next.resolved)) {\n      const show = () => setReferenceHint(current => (current?.anchor === next.anchor ? current : next));\n      if (referenceHover(next.reference, next.resolved) === 'peek' && referenceHint?.anchor !== next.anchor)\n        referenceTimer.current = setTimeout(show, 300);\n      else show();\n    } else referenceTimer.current = setTimeout(() => setReferenceHint(null), 80);\n  };\n  const openReference = (target: EventTarget | null) => {\n    const file = referenceAt(target)?.resolved?.file;\n    if (!file) return;\n    clearTimeout(referenceTimer.current);\n    setReferenceHint(null);\n    setViewing({ file, open: true });\n  };\n  const sources = {\n    agent: useRef(agents),\n    skill: useRef(skills),\n    file: useRef(files),\n  };\n  sources.agent.current = agents;\n  sources.skill.current = skills;\n  sources.file.current = files;\n  const enabled = `${!!agents}${!!skills}${!!files}`;\n  const extensions = useMemo<Extensions>(\n    () => [\n      referenceNode,\n      linkShortcut,\n      ...chatInputReferenceKindNames\n        .filter(kind => sources[kind].current)\n        .map(kind => triggerExtension(kind, sources[kind], setPanel, picked)),\n    ],\n    [enabled],\n  );\n  const streaming = status === 'streaming';\n  const filled = hasContent(value) || attachments.length > 0;\n  const canSend = filled && !disabled && !streaming;\n  const activeMode = modes?.find(option => option.id === mode);\n  const optionId = (index: number) => `${listId}-option-${index}`;\n  const panelOpen = !!panel;\n\n  useLayoutEffect(() => {\n    const bounds = form.current?.getBoundingClientRect();\n    if (panel && bounds) setPanelBelow(bounds.top < 320 && window.innerHeight - bounds.bottom > bounds.top);\n  }, [panelOpen]);\n\n  const send = () => {\n    if (canSend) onSend();\n  };\n  const fill = (prompt: ChatInputPrompt) => {\n    editor.current?.setContent(textDoc(prompt.prompt ?? prompt.label));\n    editor.current?.editor()?.commands.focus('end');\n    onPromptSelect?.(prompt);\n  };\n\n  return (\n    <div\n      data-slot=\"chat-input\"\n      data-status={status}\n      data-mode-color={activeMode?.color ? '' : undefined}\n      style={\n        activeMode?.color\n          ? ({\n              '--sprout-chat-input-mode': activeMode.color,\n            } as CSSProperties)\n          : undefined\n      }\n      className={cn('sprout-chat-input', className)}\n    >\n      <form\n        ref={form}\n        aria-label={label}\n        className=\"sprout-chat-input-form\"\n        onPointerOver={event => hoverReference(event.target)}\n        onClick={event => openReference(event.target)}\n        onPointerLeave={() => hoverReference(null)}\n        onSubmit={event => {\n          event.preventDefault();\n          send();\n        }}\n      >\n        <InputGroup variant=\"composer\" className=\"sprout-chat-input-box\">\n          {attachments.length > 0 && (\n            <InputGroupAddon align=\"block-start\" className=\"sprout-chat-input-attachments\">\n              {attachments.map(file => (\n                <FileAttachment\n                  key={file.id}\n                  file={file}\n                  variant=\"chip\"\n                  viewable\n                  preview\n                  onRemove={onRemoveAttachment && !disabled ? () => onRemoveAttachment(file.id) : undefined}\n                />\n              ))}\n            </InputGroupAddon>\n          )}\n          <RichTextEditor\n            ref={editor}\n            minRows={minRows}\n            value={value}\n            onChange={next => {\n              setReferenceHint(null);\n              onValueChange(next);\n            }}\n            onSend={send}\n            extensions={extensions}\n            keywords={integrations}\n            onKeywordConnect={onConnectIntegration}\n            onKeywordAccountChange={onIntegrationAccountChange}\n            placeholder={streaming ? streamingPlaceholder : placeholder}\n            disabled={disabled}\n            ariaLabel={label}\n            ariaExpanded={!!panel}\n            ariaControls={panel ? listId : undefined}\n            ariaActiveDescendant={panel?.items.length ? optionId(panel.active) : undefined}\n            className=\"sprout-chat-input-editor\"\n            toolbarAddon={\n              <div className=\"sprout-chat-input-bar\">\n                <div className=\"sprout-chat-input-bar-start\">\n                  {attachActions && attachActions.length > 0 && (\n                    <DropdownMenu>\n                      <Tooltip>\n                        <TooltipTrigger\n                          render={\n                            <DropdownMenuTrigger\n                              render={\n                                <InputGroupButton size=\"icon\" aria-label=\"Add files and more\" disabled={disabled} />\n                              }\n                            />\n                          }\n                        >\n                          <AddIcon size=\"md\" aria-hidden=\"true\" />\n                        </TooltipTrigger>\n                        <TooltipContent>Add files and more</TooltipContent>\n                      </Tooltip>\n                      <DropdownMenuContent size=\"menu\" side=\"top\" align=\"start\" className=\"sprout-chat-input-menu\">\n                        <DropdownMenuGroup>\n                          <DropdownMenuLabel>Add</DropdownMenuLabel>\n                          {attachActions.map(action => (\n                            <DropdownMenuItem key={action.id} onClick={action.onSelect}>\n                              {action.icon}\n                              <span className=\"sprout-chat-input-option-text\">\n                                <span>{action.label}</span>\n                                {action.description && (\n                                  <span className=\"sprout-chat-input-option-description\">{action.description}</span>\n                                )}\n                              </span>\n                            </DropdownMenuItem>\n                          ))}\n                        </DropdownMenuGroup>\n                      </DropdownMenuContent>\n                    </DropdownMenu>\n                  )}\n                  {modes && modes.length > 0 && (\n                    <DropdownMenu>\n                      <Tooltip>\n                        <TooltipTrigger\n                          render={\n                            <DropdownMenuTrigger\n                              render={\n                                <InputGroupButton\n                                  size=\"icon\"\n                                  aria-label={`Mode: ${activeMode?.label ?? 'Default'}`}\n                                  disabled={disabled}\n                                />\n                              }\n                            />\n                          }\n                        >\n                          <SlidersIcon size=\"md\" aria-hidden=\"true\" />\n                        </TooltipTrigger>\n                        <TooltipContent>Modes</TooltipContent>\n                      </Tooltip>\n                      <DropdownMenuContent size=\"menu\" side=\"top\" align=\"start\" className=\"sprout-chat-input-menu\">\n                        <DropdownMenuGroup>\n                          <DropdownMenuLabel>Mode</DropdownMenuLabel>\n                          <DropdownMenuRadioGroup\n                            value={mode ?? ''}\n                            onValueChange={next => onModeChange?.(next === mode || !next ? null : String(next))}\n                          >\n                            {modes.map(option => (\n                              <DropdownMenuRadioItem\n                                key={option.id}\n                                value={option.id}\n                                closeOnClick\n                                style={\n                                  option.color\n                                    ? ({\n                                        '--sprout-chat-input-mode': option.color,\n                                      } as CSSProperties)\n                                    : undefined\n                                }\n                                className={option.color ? 'sprout-chat-input-mode-option' : undefined}\n                              >\n                                {option.icon}\n                                <span className=\"sprout-chat-input-option-text\">\n                                  <span>{option.label}</span>\n                                  {option.description && (\n                                    <span className=\"sprout-chat-input-option-description\">{option.description}</span>\n                                  )}\n                                </span>\n                              </DropdownMenuRadioItem>\n                            ))}\n                          </DropdownMenuRadioGroup>\n                        </DropdownMenuGroup>\n                      </DropdownMenuContent>\n                    </DropdownMenu>\n                  )}\n                  {activeMode && (\n                    <InputGroupButton\n                      variant=\"secondary\"\n                      className=\"sprout-chat-input-mode\"\n                      aria-label={`Turn off ${activeMode.label}`}\n                      disabled={disabled}\n                      onClick={() => onModeChange?.(null)}\n                    >\n                      {activeMode.icon}\n                      <span className=\"sprout-chat-input-picker-label\">{activeMode.label}</span>\n                      <CloseIcon size=\"xs\" aria-hidden=\"true\" />\n                    </InputGroupButton>\n                  )}\n                  {projects && projects.length > 0 && (\n                    <>\n                      <span className=\"sprout-chat-input-divider\" aria-hidden=\"true\" />\n                      <OptionPicker\n                        label=\"Project\"\n                        search=\"Search projects\"\n                        options={projects}\n                        value={project}\n                        onChange={id => onProjectChange?.(id)}\n                        disabled={disabled}\n                        icon={option => option?.icon ?? <FolderIcon size=\"md\" aria-hidden=\"true\" />}\n                        align=\"start\"\n                      />\n                    </>\n                  )}\n                </div>\n                <div className=\"sprout-chat-input-bar-end\">\n                  {models && models.length > 0 && (\n                    <ModelSelector\n                      models={models}\n                      value={model}\n                      onValueChange={id => onModelChange?.(id)}\n                      disabled={disabled}\n                      side=\"top\"\n                      align=\"end\"\n                      render={<InputGroupButton className=\"sprout-chat-input-picker\" />}\n                    />\n                  )}\n                  {streaming ? (\n                    <InputGroupButton\n                      size=\"icon\"\n                      variant=\"default\"\n                      className=\"sprout-chat-input-send\"\n                      aria-label=\"Stop\"\n                      onClick={onStop}\n                    >\n                      <span className=\"sprout-chat-input-stop\" aria-hidden=\"true\" />\n                    </InputGroupButton>\n                  ) : (\n                    <InputGroupButton\n                      type=\"submit\"\n                      size=\"icon\"\n                      variant={canSend ? 'default' : 'secondary'}\n                      className=\"sprout-chat-input-send\"\n                      aria-label=\"Send message\"\n                      disabled={!canSend}\n                    >\n                      <ArrowUpIcon size=\"md\" aria-hidden=\"true\" />\n                    </InputGroupButton>\n                  )}\n                </div>\n              </div>\n            }\n          />\n        </InputGroup>\n        {panel && (\n          <div className=\"sprout-chat-input-panel\" data-side={panelBelow ? 'bottom' : 'top'}>\n            <MentionList\n              id={listId}\n              label={triggers[panel.kind].label}\n              announcement={\n                panel.items.length\n                  ? `${panel.items.length} ${triggers[panel.kind].label.toLowerCase()}. Use Up and Down to choose, Enter to add, Escape to close.`\n                  : triggers[panel.kind].empty\n              }\n              status={\n                panel.items.length ? undefined : (\n                  <MentionStatus tone=\"empty\">{triggers[panel.kind].empty}</MentionStatus>\n                )\n              }\n            >\n              {panel.items.map((item, index) => (\n                <MentionOption\n                  key={item.id}\n                  id={optionId(index)}\n                  active={index === panel.active}\n                  onSelect={() => panel.select(index)}\n                  media={item.media}\n                  title={item.label}\n                  description={item.description}\n                />\n              ))}\n            </MentionList>\n          </div>\n        )}\n      </form>\n      <HoverCard\n        open={\n          !!referenceHint?.resolved?.file && referenceHover(referenceHint.reference, referenceHint.resolved) === 'peek'\n        }\n        onOpenChange={open => !open && setReferenceHint(null)}\n      >\n        {referenceHint?.resolved?.file && (\n          <ReferencePeek\n            file={referenceHint.resolved.file}\n            anchor={firstLine(referenceHint.anchor)}\n            onPointerEnter={() => clearTimeout(referenceTimer.current)}\n            onPointerLeave={() => hoverReference(null)}\n          />\n        )}\n      </HoverCard>\n      {viewing && (\n        <FileViewer\n          file={viewing.file}\n          open={viewing.open}\n          onOpenChange={open => setViewing(current => current && { ...current, open })}\n        />\n      )}\n      <Tooltip\n        open={!!referenceHint && referenceHover(referenceHint.reference, referenceHint.resolved) === 'hint'}\n        onOpenChange={open => !open && setReferenceHint(null)}\n      >\n        {referenceHint && referenceHover(referenceHint.reference, referenceHint.resolved) === 'hint' && (\n          <TooltipContent\n            anchor={referenceHint.anchor}\n            className=\"sprout-message-rich-text-hint\"\n            data-slot=\"chat-input-reference-hint\"\n            onPointerEnter={() => clearTimeout(referenceTimer.current)}\n            onPointerLeave={() => hoverReference(null)}\n          >\n            <ReferenceHintBody reference={referenceHint.reference} media={referenceHint.resolved?.media} />\n          </TooltipContent>\n        )}\n      </Tooltip>\n      {prompts && prompts.length > 0 && !filled && !streaming && (\n        <div role=\"group\" aria-label=\"Suggested prompts\" className=\"sprout-chat-input-prompts\">\n          {prompts.map(prompt => (\n            <Button\n              key={prompt.id}\n              size=\"sm\"\n              variant=\"outline\"\n              disabled={disabled}\n              className=\"sprout-chat-input-prompt\"\n              onClick={() => fill(prompt)}\n            >\n              {prompt.icon}\n              {prompt.label}\n            </Button>\n          ))}\n        </div>\n      )}\n    </div>\n  );\n}\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/add-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/add-icon.tsx",
      "content": "import { Add01Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const AddIcon = /* @__PURE__ */ createIcon(glyph, 'AddIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/arrow-up-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/arrow-up-icon.tsx",
      "content": "import { ArrowUp02Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const ArrowUpIcon = /* @__PURE__ */ createIcon(glyph, 'ArrowUpIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/book-open-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/book-open-icon.tsx",
      "content": "import { BookOpenIcon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const BookOpenIcon = /* @__PURE__ */ createIcon(glyph, 'BookOpenIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/chevron-down-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/chevron-down-icon.tsx",
      "content": "import { ArrowDown01Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const ChevronDownIcon = /* @__PURE__ */ createIcon(glyph, 'ChevronDownIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/close-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/close-icon.tsx",
      "content": "import { Cancel01Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const CloseIcon = /* @__PURE__ */ createIcon(glyph, 'CloseIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/create-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/create-icon.tsx",
      "content": "import { HugeiconsIcon, type IconSvgElement } from '@hugeicons/react';\nimport type { ReactElement, Ref, SVGProps } from 'react';\n\nexport const iconSizes = {\n  xs: 12,\n  sm: 14,\n  md: 16,\n  lg: 18,\n  xl: 20,\n  '2xl': 24,\n} as const;\n\nexport type IconSize = keyof typeof iconSizes;\n\nexport const iconStrokeWidth = 1.5;\n\nexport type IconProps = Omit<SVGProps<SVGSVGElement>, 'ref'> & {\n  size?: IconSize | number;\n  ref?: Ref<SVGSVGElement>;\n};\n\nexport type IconComponent = (props: IconProps) => ReactElement;\n\nexport function createIcon(glyph: IconSvgElement, name: string): IconComponent {\n  const Icon = ({ size = '2xl', strokeWidth = iconStrokeWidth, ...props }: IconProps) => (\n    <HugeiconsIcon\n      icon={glyph}\n      size={typeof size === 'number' ? size : iconSizes[size]}\n      strokeWidth={Number(strokeWidth)}\n      {...props}\n    />\n  );\n  Icon.displayName = name;\n  return Icon;\n}\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/document-text-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/document-text-icon.tsx",
      "content": "import { File02Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const DocumentTextIcon = /* @__PURE__ */ createIcon(glyph, 'DocumentTextIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/folder-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/folder-icon.tsx",
      "content": "import { Folder01Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const FolderIcon = /* @__PURE__ */ createIcon(glyph, 'FolderIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/sliders-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/sliders-icon.tsx",
      "content": "import { SlidersHorizontalIcon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const SlidersIcon = /* @__PURE__ */ createIcon(glyph, 'SlidersIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/user-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/user-icon.tsx",
      "content": "import { UserIcon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const UserIcon = /* @__PURE__ */ createIcon(glyph, 'UserIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/chat-reference.ts",
      "type": "registry:lib",
      "target": "lib/sprout/chat-reference.ts",
      "content": "export const chatReferenceChars = { agent: '@', skill: '/', file: '#' } as const;\n\nexport type ChatReferenceKind = keyof typeof chatReferenceChars;\n"
    },
    {
      "path": "registry/sprout/lib/sprout/reference-hint.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/reference-hint.tsx",
      "content": "import type { ReactNode } from 'react';\nimport { BookOpenIcon } from '@/lib/sprout/icons/book-open-icon';\nimport { DocumentTextIcon } from '@/lib/sprout/icons/document-text-icon';\nimport { UserIcon } from '@/lib/sprout/icons/user-icon';\nimport { FilePreview, isPreviewableFile, type ViewableFile } from '@/components/ui/file-viewer';\nimport { HoverCardContent, type HoverCardContentProps } from '@/components/ui/hover-card';\nimport type { ChatReferenceKind } from '@/lib/sprout/chat-reference';\n\nexport interface ChatReferenceDetail {\n  kind: ChatReferenceKind;\n  id: string;\n  label: string;\n  description?: string | undefined;\n}\n\nexport interface ChatReferenceResolved {\n  media?: ReactNode;\n  file?: ViewableFile | undefined;\n}\n\nconst fallbackIcons = { agent: UserIcon, skill: BookOpenIcon } as const;\n\nexport function ReferenceHintBody({ reference, media }: { reference: ChatReferenceDetail; media?: ReactNode }) {\n  const Fallback = reference.kind === 'file' ? DocumentTextIcon : fallbackIcons[reference.kind];\n  return (\n    <>\n      <span className=\"sprout-rich-text-keyword-hint-icon\" aria-hidden=\"true\">\n        {media ?? <Fallback size={16} />}\n      </span>\n      <span className=\"sprout-rich-text-keyword-hint-label\">{reference.label}</span>\n      {reference.description && <span className=\"sprout-rich-text-keyword-hint-account\">{reference.description}</span>}\n    </>\n  );\n}\n\nexport function ReferencePeek({\n  file,\n  anchor,\n  ...props\n}: { file: ViewableFile; anchor?: HoverCardContentProps['anchor'] } & {\n  onPointerEnter?: () => void;\n  onPointerLeave?: () => void;\n}) {\n  return (\n    <HoverCardContent\n      side=\"top\"\n      align=\"start\"\n      anchor={anchor}\n      className=\"sprout-file-attachment-peek\"\n      data-slot=\"chat-reference-peek\"\n      {...props}\n    >\n      <FilePreview file={file} />\n    </HoverCardContent>\n  );\n}\n\nexport function referenceHover(reference: ChatReferenceDetail, resolved: ChatReferenceResolved | undefined) {\n  if (reference.kind !== 'file') return 'hint';\n  return resolved?.file && isPreviewableFile(resolved.file) ? 'peek' : null;\n}\n\nexport function referenceDetail(attrs: Record<string, unknown> | undefined): ChatReferenceDetail {\n  const kind = String(attrs?.kind ?? 'file') as ChatReferenceKind;\n  return {\n    kind,\n    id: String(attrs?.id ?? ''),\n    label: String(attrs?.label ?? ''),\n    description: attrs?.description ? String(attrs.description) : undefined,\n  };\n}\n"
    }
  ],
  "css": {
    "@layer components": {
      ".sprout-chat-input": {
        "box-sizing": "border-box",
        "width": "100%",
        "min-width": "0",
        "font-family": "var(--sprout-font)",
        "flex-direction": "column",
        "gap": "12px",
        "display": "flex"
      },
      ".sprout-chat-input-form": {
        "min-width": "0",
        "position": "relative"
      },
      ".sprout-chat-input-attachments.sprout-input-group-addon": {
        "overscroll-behavior-x": "contain",
        "scrollbar-width": "none",
        "cursor": "default",
        "flex-wrap": "nowrap",
        "justify-content": "flex-start",
        "gap": "6px",
        "padding": "4px 4px 0",
        "overflow-x": "auto"
      },
      ".sprout-chat-input-attachments::-webkit-scrollbar": {
        "display": "none"
      },
      ".sprout-chat-input-attachments > *": {
        "flex-shrink": "0"
      },
      ".sprout-chat-input-editor .sprout-rich-text-editor-body": {
        "min-height": "4.5rem"
      },
      ".sprout-chat-input-editor .sprout-rich-text-editor-content": {
        "font-size": "var(--sprout-text-base)",
        "line-height": "1.625"
      },
      ".sprout-chat-input-reference": {
        "border-radius": "var(--sprout-radius-control)",
        "background": "color-mix(in oklab, var(--sprout-text) 8%, transparent)",
        "color": "var(--sprout-text)",
        "white-space": "nowrap",
        "-webkit-box-decoration-break": "clone",
        "box-decoration-break": "clone",
        "padding": "0 .4375em",
        "font-weight": "500"
      },
      ".sprout-chat-input-reference[data-openable]": {
        "cursor": "pointer"
      },
      ".sprout-chat-input-reference[data-chat-reference=\"agent\"]": {
        "background": "var(--sprout-info-subtle)",
        "color": "var(--sprout-info)"
      },
      ".sprout-chat-input-reference.ProseMirror-selectednode": {
        "outline": "var(--sprout-focus-width) solid var(--sprout-focus-ring)",
        "outline-offset": "0"
      },
      ".sprout-chat-input-editor .sprout-rich-text-editor-content a": {
        "color": "var(--sprout-info)",
        "text-underline-offset": "2px",
        "text-decoration": "underline"
      },
      ".sprout-chat-input-bar": {
        "flex": "1",
        "justify-content": "space-between",
        "align-items": "center",
        "gap": "8px",
        "min-width": "0",
        "display": "flex"
      },
      ".sprout-chat-input-bar-start, .sprout-chat-input-bar-end": {
        "align-items": "center",
        "gap": "2px",
        "min-width": "0",
        "display": "flex"
      },
      ".sprout-chat-input-bar-end": {
        "flex-shrink": "0",
        "gap": "6px"
      },
      ".sprout-chat-input-divider": {
        "background": "var(--sprout-line)",
        "align-self": "center",
        "width": "1px",
        "height": "20px",
        "margin-inline": "6px"
      },
      ".sprout-chat-input-bar .sprout-input-group-button[data-variant=\"ghost\"]": {
        "color": "var(--sprout-muted)"
      },
      "@media (hover: hover)": {
        ".sprout-chat-input-bar .sprout-input-group-button[data-variant=\"ghost\"]:hover": {
          "color": "var(--sprout-text)"
        },
        ".sprout-chat-input[data-mode-color] .sprout-chat-input-bar .sprout-chat-input-mode:hover": {
          "background": "color-mix(in oklab, var(--sprout-chat-input-mode) 22%, transparent)"
        },
        ".sprout-message-rich-text-file:hover > .sprout-chat-input-reference": {
          "background-color": "color-mix(in oklab, var(--sprout-text) 14%, transparent)"
        }
      },
      ".sprout-chat-input-picker-label": {
        "text-overflow": "ellipsis",
        "white-space": "nowrap",
        "min-width": "0",
        "max-width": "10rem",
        "overflow": "hidden"
      },
      ".sprout-chat-input-bar .sprout-chat-input-mode": {
        "color": "var(--sprout-text)"
      },
      ".sprout-chat-input[data-mode-color] .sprout-input-group.sprout-chat-input-box": {
        "border-color": "var(--sprout-chat-input-mode)",
        "box-shadow": "0 0 0 3px color-mix(in oklab, var(--sprout-chat-input-mode) 14%, transparent)"
      },
      ".sprout-chat-input[data-mode-color] .sprout-chat-input-bar .sprout-chat-input-mode": {
        "background": "color-mix(in oklab, var(--sprout-chat-input-mode) 14%, transparent)",
        "color": "var(--sprout-chat-input-mode)"
      },
      ".sprout-chat-input-mode-option > :is(svg, .sprout-brand-icon)": {
        "color": "var(--sprout-chat-input-mode)"
      },
      ".sprout-dropdown-menu-content.sprout-chat-input-menu": {
        "width": "18rem"
      },
      ".sprout-chat-input-menu :is(.sprout-dropdown-menu-item, .sprout-command-item):has(.sprout-chat-input-option-text)": {
        "align-items": "flex-start",
        "padding-block": "6px"
      },
      ".sprout-chat-input-menu :is(.sprout-dropdown-menu-item, .sprout-command-item):has(.sprout-chat-input-option-text) > :is(svg, .sprout-brand-icon)": {
        "margin-top": "2px"
      },
      ".sprout-chat-input-option-text": {
        "flex-direction": "column",
        "gap": "2px",
        "min-width": "0",
        "display": "flex"
      },
      ".sprout-chat-input-option-description": {
        "color": "var(--sprout-muted)",
        "font-size": "var(--sprout-text-xs)",
        "line-height": "1rem"
      },
      ".sprout-chat-input-panel": {
        "inset-inline": "0",
        "z-index": "20",
        "position": "absolute",
        "bottom": "calc(100% + 8px)"
      },
      ".sprout-chat-input-panel[data-side=\"bottom\"]": {
        "top": "calc(100% + 8px)",
        "bottom": "auto"
      },
      ".sprout-chat-input-prompts": {
        "flex-wrap": "wrap",
        "gap": "8px",
        "display": "flex"
      },
      ".sprout-chat-input-stop": {
        "background": "currentColor",
        "border-radius": "2px",
        "width": "10px",
        "height": "10px"
      },
      ".sprout-button.sprout-chat-input-prompt": {
        "font-weight": "400"
      },
      "@media (pointer: coarse)": {
        ".sprout-chat-input-picker-label": {
          "max-width": "6rem"
        },
        ".sprout-chat-input .sprout-button.sprout-chat-input-send": {
          "border-radius": "calc(var(--sprout-radius-control) + 8px)",
          "background-clip": "padding-box",
          "border": "8px solid #0000"
        }
      },
      "@media (width <= 480px)": {
        ".sprout-chat-input-bar .sprout-chat-input-picker-label": {
          "display": "none"
        }
      },
      "@media (prefers-reduced-motion: no-preference)": {
        ".sprout-chat-input[data-status=\"streaming\"] .sprout-rich-text-editor-content .is-editor-empty:first-child:before": {
          "animation": "1.6s ease-in-out infinite alternate sprout-chat-input-pulse"
        },
        ".sprout-input-group.sprout-chat-input-box": {
          "transition": "border-color var(--sprout-motion-normal) var(--sprout-motion-ease),\n        box-shadow var(--sprout-motion-normal) var(--sprout-motion-ease)"
        }
      },
      "@keyframes sprout-chat-input-pulse": {
        "to": {
          "opacity": ".4"
        }
      },
      "@media (forced-colors: active)": {
        ".sprout-chat-input[data-status=\"streaming\"] .sprout-rich-text-editor-content .is-editor-empty:first-child:before": {
          "color": "graytext"
        }
      },
      ".sprout-message-rich-text": {
        "overflow-wrap": "anywhere",
        "min-width": "0"
      },
      ".sprout-message-rich-text-keyword": {
        "outline": "none"
      },
      ".sprout-message-rich-text-keyword:focus-visible > .sprout-rich-text-keyword": {
        "outline": "var(--sprout-focus-width) solid var(--sprout-focus-ring)",
        "outline-offset": "1px"
      },
      ".sprout-message-rich-text-file": {
        "color": "inherit",
        "font": "inherit",
        "cursor": "pointer",
        "background": "none",
        "border": "0",
        "padding": "0"
      },
      ".sprout-message-rich-text .sprout-rich-text-keyword-status": {
        "cursor": "inherit"
      },
      ".sprout-message-rich-text > *": {
        "margin-block": "0"
      },
      ".sprout-message-rich-text > * + *": {
        "margin-top": ".5em"
      },
      ".sprout-message-rich-text :is(h1, h2, h3, h4, h5, h6)": {
        "font-size": "1em",
        "font-weight": "600"
      },
      ".sprout-message-rich-text :is(ul, ol)": {
        "padding-left": "1.25em"
      },
      ".sprout-message-rich-text ul": {
        "list-style": "outside"
      },
      ".sprout-message-rich-text ol": {
        "list-style": "decimal"
      },
      ".sprout-message-rich-text li > p": {
        "margin": "0"
      },
      ".sprout-message-rich-text blockquote": {
        "border-left": "2px solid var(--sprout-border)",
        "color": "var(--sprout-muted)",
        "margin-inline": "0",
        "padding-left": ".75em"
      },
      ".sprout-message-rich-text code": {
        "border-radius": "var(--sprout-radius-control)",
        "background-color": "color-mix(in oklab, var(--sprout-text) 8%, transparent)",
        "padding": ".125em .3em",
        "font-family": "ui-monospace, SFMono-Regular, Menlo, monospace",
        "font-size": ".875em"
      },
      ".sprout-message-rich-text pre": {
        "border-radius": "var(--sprout-radius-control)",
        "background-color": "color-mix(in oklab, var(--sprout-text) 8%, transparent)",
        "padding": ".5em .75em",
        "overflow-x": "auto"
      },
      ".sprout-message-rich-text pre code": {
        "white-space": "pre",
        "background-color": "#0000",
        "padding": "0"
      },
      ".sprout-message-rich-text a": {
        "color": "var(--sprout-info)",
        "text-underline-offset": "2px",
        "text-decoration": "underline"
      },
      ".sprout-message-rich-text hr": {
        "border": "0",
        "border-top": "1px solid var(--sprout-border)"
      },
      ".sprout-tooltip-content.sprout-message-rich-text-hint": {
        "border-radius": "var(--sprout-radius-panel)",
        "box-shadow": "var(--sprout-shadow-overlay)",
        "white-space": "nowrap",
        "gap": "6px",
        "padding": "4px 10px"
      },
      ".sprout-message-rich-text-hint > .sprout-tooltip-arrow": {
        "display": "none"
      }
    }
  },
  "docs": "Docs and examples: https://sprout.tulipfarm.ai/components/chat-input/",
  "meta": {
    "source": "packages/sprout/src/components/chat-input.tsx"
  }
}
