This component lets you customize the wrapper tag for a widget by specifying the kind of tag to use (e.g. <h1>
, <li>
etc.) and its attributes like style
, class
, etc.
Props
tag
(String
) – determines the HTML tag to be used. Defaults to"div"
.- [New in 1.52.0]
ref
(React.Ref
) –React
’s ref object or callback. Provides access to the underlying DOM element, enabling low-level DOM interactions. Default:undefined
. - Any other props are forwarded to the rendered HTML tag. This allows the developer to provide
style
,className
,data-
or other attributes for the tag.