UNPKG

@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.

13 lines (12 loc) 580 B
import { JSX } from 'solid-js'; import { CardContext, CardHost, CardPolicy } from './card-contract'; export interface CardProviderProps { /** Ambient context, static or a reactive getter. */ context: CardContext | (() => CardContext); /** Routing policy applied to every emitted event. */ policy?: CardPolicy; children: JSX.Element; } export declare function CardProvider(props: CardProviderProps): JSX.Element; /** Read the current CardHost. `undefined` when no provider is present (bare card). */ export declare function useCardHost(): CardHost | undefined;