HTML widget

The HTML Render Widget enables seamless rendering of HTML code within your application, providing a dynamic and interactive experience for users.

Test in Kitchen Sink (opens in a new tab)

Properties

PropertyTypeDescription
textstringEnter the HTML text
cssStylesList of cssStyleEnter the CSS to interact with HTML

cssStyle

PropertyTypeDescription
selectorStringEquivalent to the CSS selector. To select any given tag using either tag name, class name or id of that tag
propertiespropertiesThe css properties to apply to a selected tag.

properties

PropertyTypeDescription
backgroundColorstringSets the background color of an element. Useful for emphasizing or styling page sections.
colorstringDefines the text color within an element, impacting readability and visual hierarchy.
counterIncrementstringSpecifies the increment value for counters, facilitating dynamic list numbering or tracking.
counterResetstringDetermines the reset value for counters, useful for restarting or initializing counting sequences.
directionstringSets the text direction, crucial for proper alignment in multilingual content.
displaystringSpecifies the box model used for an element, influencing its layout and rendering behavior.
fontFamilystringDefines the font family for text, allowing customization of the typeface for stylistic or thematic consistency.
fontFeatureSettingsstringEnables advanced typographic features in fonts, providing fine control over ligatures and stylistic elements.
fontSizestringSets the font size within an element, influencing the overall visual hierarchy and readability of content.
fontStylestringSpecifies the style of the font, such as italic or normal, contributing to the visual emphasis of displayed text.
fontWeightstringSets the thickness of characters within a text element, allowing for varied emphasis and hierarchy in content.
heightstringDefines the height of an element, offering control over vertical dimensions and aspect ratios.
letterSpacingstringAdjusts the spacing between characters in text, providing fine-tuned control over readability and aesthetics.
listStyleImagestringSets an image as the list-item marker, allowing customization of list styles with distinctive visual markers.
listStyleTypestringDefines the type of marker or style for list items, contributing to the overall appearance and theme of content lists.
listStylePositionstringSets the position of the list-item marker, influencing its placement in relation to list item content and surroundings.
marginstringSets the margin outside an element's border, controlling spacing between the element and its neighboring elements.
paddingstringDefines the padding inside an element's border, ensuring space between the element's content and its border.
textAlignstringAligns text within an element, controlling horizontal positioning such as left-aligned, center-aligned, or right-aligned.
textDecorationstringAdds decoration to text, like underline or overline, enhancing visual appeal or conveying additional information.
textDecorationColorstringSets the color of the text decoration, allowing coordination with the document's color scheme.
textDecorationStylestringDefines the style of the text decoration, influencing its visual appearance with options like solid, dashed, or dotted lines.
textDecorationThicknessstringSpecifies the thickness of the text decoration, providing control over its visual prominence.
textOverflowstringDefines how text content that overflows its container should be handled, indicating options like ellipsis or clip.
textShadowstringAdds a shadow to text for emphasis, enhancing legibility and visual impact of text elements within a design or layout.
textTransformstringControls the capitalization of text, allowing options like uppercase or lowercase to achieve stylistic preferences.
verticalAlignstringAligns the vertical positioning of inline elements, ensuring proper alignment in relation to surrounding content.
whiteSpacestringControls handling of white space inside an element, influencing text wrapping, line breaks, and spacing for optimal readability.
widthstringDefines the width of an element, offering control over horizontal dimensions and aspect ratios.
wordSpacingstringAdjusts spacing between words in text, providing control over the visual appearance and readability of textual content.
lineHeightstringSets the height of a line of text, influencing overall vertical spacing and readability within an element.
maxLinesstringLimits the number of lines for multiline text, controlling display and preventing excessive expansion of text content.

styles

PropertyTypeDescription
expandedbooleanIf the parent is a Row or Column, this flag will stretch this widget in the appropriate direction. (e.g stretch horizontally for parent of type Row)
borderRadiusstring or integerThe border radius of the widget.This can be specified using CSS-like notation with 1 to 4 integers. Minimum value: 0.
borderColorinteger or stringSets the border color, starting with '0xFF' for full opacity. transparent black blue white red grey teal amber pink purple yellow green brown cyan indigo lime orange
borderWidthintegerThickness of the border. Minimum value should be 0.
shadowColorinteger or stringSets the box shadow color starting with '0xFF' for full opacity. transparent black blue white red grey teal amber pink purple yellow green brown cyan indigo lime orange
shadowOffsetarrayThe values in array define the horizontal and vertical offset of the shadow. Example: if the shadowOffset is set to [2, 4], the shadow will be offset by 2 pixels horizontally and 4 pixels vertically from its original position.
shadowStylestringThe blur style to apply on the shadow normal, solid, outer, inner
stackPositionTopintegerThe distance of the child's top edge from the top of the stack. This is applicable only for Stack's children.
stackPositionBottomintegerThe distance that the child's bottom edge from the bottom of the stack. This is applicable only for Stack's children.
stackPositionLeftintegerThe distance that the child's left edge from the left of the stack. This is applicable only for Stack's children.
stackPositionRightintegerThe distance that the child's right edge from the right of the stack. This is applicable only for Stack's children.
backgroundImageobjectBackground image of the box. see properties
backgroundGradientobjectBackground gradient of the box see properties
backgroundColorinteger or stringBackground color of the box. which can be represented in different formats. It can be specified as a number, a predefined color name, or a hexadecimal value starting with '0x'. transparent black blue white red grey teal amber pink purple yellow green brown cyan indigo lime orange
alignmentstringThe alignment of the widget relative to its parent. topLeft, topCenter, topRight, centerLeft, center, centerRight, bottomLeft, bottomCenter, bottomRight
visiblebooleanToggle a widget visibility on/off. Note that an invisible widget will not occupy UI space, unless the visibilityTransitionDuration is specified.
visibilityTransitionDurationnumberSpecify the duration in seconds when a widget animates between visible and not visible state. Note that setting this value will cause the widget to still occupy the UI space even when it is not visible.
elevationintegerThe z-coordinate at which to place this material relative to its parent. A non-zero value will show a shadow, with its size relative to the elevation value. Minimum value: 0, Maximum value: 24
elevationShadowColorinteger or stringThe shadow color for the elevation, which can be represented in different formats. It can be specified as a number, a predefined color name, or a hexadecimal value starting with '0x'. transparent black blue white red grey teal amber pink purple yellow green brown cyan indigo lime orange
elevationBorderRadiusstring or integerThe border radius of the widget.This can be specified using CSS-like notation with 1 to 4 integers. Minimum value: 0.
marginstring or integerMargin with CSS-style notation
paddingstring or integerPadding with CSS-style value
widthintegerThe width property determines the horizontal size of an element, allowing control over its width dimension within the layout.
heightintegerThe height property determines the vertical size of an element, allowing control over its height dimension within the layout.
captureWebPointerbooleanApplicable for Web only. When overlaying widgets on top of certain HTML container (e.g. Maps), the mouse click is captured by the HTML container, causing issue interacting with the widget. Use this to capture and maintain the mouse pointer on your widget.
headingTextobjectSet the text style for the heading text.see properties
dataTextobjectSet the text style for the data item text. see properties