API reference: @salmonui/rich-text
HtmlElementinterface
import type { HtmlElement } from '@salmonui/rich-text';interface HtmlElement {
type: 'element';
tag: string;
attrs: Record<string, string>;
children: HtmlNode[];
}
An element of a parsed HTML fragment. Tag and attribute names are lowercase.
| Name | Signature | Description |
|---|---|---|
type | type: 'element'; | |
tag | tag: string; | |
attrs | attrs: Record<string, string>; | |
children | children: HtmlNode[]; |