Liquid Multimodal Input
Drop a file, type a thought. The input breathes open to meet you.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | "Ask anything, or drop files…" | Placeholder text shown when the input is empty. |
maxHeight | number | 250 | Maximum height in pixels before the textarea scrolls. |
accept | string | "image/*,application/pdf,text/*" | Accepted file MIME types for the drop zone and file picker. |
defaultModel | "fast" | "thinking" | "pro" | "pro" | Initial selected model when uncontrolled. |
onSubmit | (value: string, files: File[], model: LiquidModel) => void | - | Fired when the user submits via Enter (without Shift) or the send button. |
onChange | (value: string) => void | - | Fired on every text change. |
onModelChange | (model: LiquidModel) => void | - | Fired when the selected model changes. |
hideModel | boolean | false | Hide the built-in model selector when the host app owns model state. |