8.6 Released with 🥽 visionOS support and more!
Check it out

<HtmlView> is a UI component for rendering simple static HTML content.

See also: WebView.

xml
<HtmlView html="{{ htmlString }}" />
xml
const htmlString = `
<h1 style="color: black; font-family: ui-sans-serif, system-ui;">
  <span style="color: #65adf1;">Html</span>View
</h1>
`

Props ​

html ​

ts
html: string

The HTML content to be shown.

selectable ​

ts
selectable: boolean

Gets or sets a value indicating whether HtmlView content is selectable.

...Inherited ​

For additional inherited properties, refer to the API Reference.

Native component ​

Previous
DatePicker
Next
Image