RichText
Requires:
@ray-js/ray≥0.5.10
Description
Rich text component for rendering rich text content.
Props
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| No | - | Node list (array of element/text nodes) or an HTML string | ||
| No | - | Triggered when a tag inside the rich text is clicked |
Examples
Basic usage
HTML String format
Text node list format
Tag click event
Trusted HTML Nodes and Attributes
class and style attributes are globally supported; id attribute is not supported.