@humanspeak/svelte-markdown
Version:
Markdown and HTML renderer for Svelte 5 — built for rendering streaming AI agent output from Claude Code, ChatGPT, and agentic workflows. XSS-safe defaults, streaming-aware sanitization, token caching, TypeScript types, and Svelte 5 runes.
18 lines (17 loc) • 643 B
TypeScript
import type { Snippet } from 'svelte';
interface Props {
header: boolean;
align: 'left' | 'center' | 'right' | null;
children?: Snippet;
}
/**
* Renders a table cell as either `<th>` (header) or `<td>` (data), with optional
* text alignment applied as an inline `text-align` style.
*
* @prop {boolean} header - When `true`, renders a `<th>`; otherwise renders a `<td>`.
* @prop {'left'|'center'|'right'|null} align - Column alignment.
* @prop {Snippet} [children] - Cell content.
*/
declare const TableCell: import("svelte").Component<Props, {}, "">;
type TableCell = ReturnType<typeof TableCell>;
export default TableCell;