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"
.- 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.