Polymorph
A polymorphic wrapper that renders as any HTML element via the `as` prop while forwarding all native props.
Examples
I am a span
Heading 1
Paragraph text
When to use Polymorph
Use when
You need the documented Polymorph interaction or presentation in a product workflow.
Avoid when
A native HTML element already provides the Polymorph behavior you need.
Accessibility
Keep the Polymorph labeled and use its documented keyboard interaction. The component preserves visible focus and communicates state without relying on color alone.