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.

17 lines (16 loc) 658 B
import { JSX } from 'solid-js'; export interface CodeBlockProps extends JSX.HTMLAttributes<HTMLDivElement> { children?: JSX.Element; } declare function CodeBlock(props: CodeBlockProps): JSX.Element; export interface CodeBlockCodeProps extends JSX.HTMLAttributes<HTMLDivElement> { code: string; language?: string; theme?: string; } declare function CodeBlockCode(props: CodeBlockCodeProps): JSX.Element; export interface CodeBlockGroupProps extends JSX.HTMLAttributes<HTMLDivElement> { children?: JSX.Element; } declare function CodeBlockGroup(props: CodeBlockGroupProps): JSX.Element; export { CodeBlock, CodeBlockCode, CodeBlockGroup };