ComposerComposer
첨부, 입력, 음성·보내기 버튼을 갖춘 메시지 입력창입니다.A message box with attachment, text entry, and voice and send buttons.
입력과 선택Inputs and selection
Solid
Glass
import { Composer } from "@horon-ai/react"; function Examples({ surface }: { surface: "solid" | "glass" }) { return ( <div className="flex w-full flex-col items-center gap-3"> <div className="flex w-full min-w-0 flex-wrap items-center justify-center gap-3"> <Composer surface={surface} className="max-w-72 max-md:max-w-full" size="sm" placeholder="Small" /> <Composer surface={surface} className="max-w-72 max-md:max-w-full" placeholder="Medium" /> <Composer surface={surface} className="max-w-72 max-md:max-w-full" size="lg" placeholder="Large" /> </div> <Composer surface={surface} className="w-full max-w-97.5" placeholder="Ask Chief of staff" /> <Composer surface={surface} className="w-full max-w-97.5" placeholder="Ask Chief of staff" defaultValue="Add a slide for headcount" /> </div> ); } export default function ComposerDemo() { return ( <div className="flex w-full flex-col gap-6"> <div className="flex w-full flex-col gap-4"> <p className="text-caption text-text-secondary">Solid</p> <Examples surface="solid" /> </div> <> <p className="text-caption text-text-secondary">Glass</p> <Examples surface="glass" /> </> </div> ); }