@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.
12 lines (11 loc) • 534 B
TypeScript
import { Component } from 'solid-js';
import { ChatMessageAction } from '../elements/chat-types';
type IconComponent = Component<{
class?: string;
}>;
/** Resolve a curated icon name to its component, or `undefined` when unknown
* (the caller then renders a label-only button). */
export declare function actionIcon(name?: string): IconComponent | undefined;
/** Default labels for the built-in actions (also used as the `aria-label`). */
export declare const BUILTIN_ACTION_LABEL: Record<ChatMessageAction, string>;
export {};