Components
Private Composer
A dark, compact prompt composer with a private-mode toggle.
GPT-5
Installation
npx shadcn@latest add https://ai-native-ui.com/r/private-composer.jsonUsage
import { PrivateComposer } from "@/components/ui/private-composer";
<PrivateComposer
onSend={(text, isPrivate) => ask(text, { isPrivate })}
onPrivateToggle={(on) => setPrivate(on)}
/>;Props
| Prop | Type | Description |
|---|---|---|
placeholder | string | Input placeholder. |
model | string | Model label shown in the toolbar. |
source | string | Source label shown in the toolbar. |
defaultPrivate | boolean | Initial private-mode state. |
onSend | (text: string, isPrivate: boolean) => void | Fires on submit. |
onPrivateToggle | (isPrivate: boolean) => void | Fires when private mode toggles. |