Prose
Prose container for agent-produced Markdown. Defensive: h1 clamps to the h3 size, URLs wrap anywhere, tables overflow with an affordance, code blocks stay on warm ink in both themes. Consumable as the plain .eq-prose class in non-React contexts.
| Prop | Type | Notes |
|---|---|---|
as |
keyof JSX.IntrinsicElements |
|
className |
string |
|
children |
React.ReactNode |
Rendered Markdown output (h1–h4, lists, code, tables, long URLs). |
Other props pass through to the root element (React.HTMLAttributes<HTMLElement>).
Preview
Declarations
export interface ProseProps extends React.HTMLAttributes<HTMLElement> {
as?: keyof React.JSX.IntrinsicElements;
className?: string;
/** Rendered Markdown output (h1–h4, lists, code, tables, long URLs). */
children?: React.ReactNode;
}
/**
* Prose container for agent-produced Markdown. Defensive: h1 clamps to the
* h3 size, URLs wrap anywhere, tables overflow with an affordance, code
* blocks stay on warm ink in both themes. Consumable as the plain `.eq-prose`
* class in non-React contexts.
*/
export function Prose(props: ProseProps): React.JSX.Element;