...
/Polymorphic Component Element Attributes
Polymorphic Component Element Attributes
Explore no attribute support for the basic polymorphic component implementations.
We'll cover the following...
We'll cover the following...
Introduction
Let's consider the current simple implementation again:
The only props this component accepts are as and children, and nothing else.
There’s no attribute support taken into consideration here. For example, if as were the anchor element a, a consumer should also be able to pass href to the component.
...