@kitn.ai/ui
Version:
Framework-agnostic, Shadow-DOM web components for building AI chat interfaces — works in React, Vue, Angular, Svelte, or plain HTML. Authored in SolidJS.
17 lines (16 loc) • 666 B
TypeScript
import { JSX } from 'solid-js';
import { CollapsibleController } from '../ui/collapsible';
import { ToolPart } from './tool-types';
export type { ToolPart } from './tool-types';
export interface ToolProps {
toolPart: ToolPart;
defaultOpen?: boolean;
/** Gate the disclosure trigger (programmatic control still works). */
disabled?: boolean;
/** Receive the open controller once mounted (forwarded from the Collapsible),
* so a parent (the kai-tool facade) can drive/observe open state. */
controllerRef?: (api: CollapsibleController) => void;
class?: string;
}
declare function Tool(props: ToolProps): JSX.Element;
export { Tool };