polymorphic
Render an element or component chosen at runtime via the as prop.
Render an element or component chosen at call time via the as prop, forwarding
all other props. Used by components that support an as escape hatch.
import { Polymorphic } from '@fluixi/polymorphic';
<Polymorphic as="a" href="/x">link</Polymorphic>
<Polymorphic as={MyComponent} />
as is read once at creation. For an as that changes over time, use the
framework Dynamic component directly.
Part of the Fluixi UI component library. Made with ☕ by the Fluixi team.