Renders any HTML element dynamically by accepting the tag name as a prop.
Description
Useful for polymorphic components where the rendered HTML element should vary based on context (e.g. heading level, semantic tag) without changing the component interface.
Param: tag
Any valid HTML tag name (e.g. 'div', 'span', 'h1', 'button')
Param: children
Content to render inside the element
Param: props
Any standard HTML attributes forwarded to the rendered element
Renders any HTML element dynamically by accepting the tag name as a prop.