Viora LogoViora UI
Login

AI Input Selector

My own style of chat AI input.

demo-ai-prompt.tsx
Loading source code...

Installation

pnpm dlx viora-ui add ai-prompt
npx viora-ui add ai-prompt
yarn viora-ui add ai-prompt
bunx --bun viora-ui add ai-prompt

Usage

import { AiPrompt } from "viora-ui";
import { AiPrompt } from "viora-ui";

export default function AiPromptDemo() {
  return (
    <div className="flex min-h-[350px] w-full items-center justify-center p-6">
      <AiPrompt />
    </div>
  );
}

API Reference

AiPrompt

PropTypeDefaultDescription
className?string""Additional CSS classes for custom styling.
children?React.ReactNode-Child elements or content to be rendered.
disabled?booleanfalseWhether the interactive state is disabled.

Built by Otis

Last updated: 9/13/2026