@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) • 752 B
TypeScript
import { DropdownController } from '../ui/dropdown';
import { SearchFilters } from '../types';
export interface ChatScopePickerProps {
currentLabel: string;
onScopeChange: (filters: SearchFilters | undefined) => void;
availableAuthors?: string[];
availableTags?: string[];
class?: string;
/** Initial open state of the dropdown (uncontrolled seed). */
defaultOpen?: boolean;
/** Disable the trigger — click/keyboard no longer open the dropdown. */
disabled?: boolean;
/** Receive the dropdown's open controller (forwarded from the inner Dropdown). */
controllerRef?: (api: DropdownController) => void;
}
export declare function ChatScopePicker(props: ChatScopePickerProps): import("solid-js").JSX.Element;