iframe
, allowing you to embed external sites.
Take into account the potential risks of adding custom HTML to your app, including XSS. Be specially careful when injecting user-generated data.
Name | Type | Description | Options |
---|---|---|---|
Element | Text | Set the type of HTML element to create, e.g., ‘div’, ‘section’, ‘span’, etc. | - |
Styles | Object | Define the CSS styles to apply to the HTML element using a JSON object or a state reference to a dictionary. | - |
Attributes | Object | Set additional HTML attributes for the element using a JSON object or a dictionary via a state reference. | - |
HTML inside | Text | Define custom HTML to be used inside the element. It will be wrapped in a div and rendered after children components. | - |
Custom CSS classes | Text | CSS classes, separated by spaces. You can define classes in custom stylesheets. | - |