Box
Box is the most abstract component on top of which all other Renderlesskit
components are built.
It uses reakit's Role component internally.
Usage
As prop
By using the as prop you can control which element should be rendered, if you
are using typescript Box is fully typesafe too.
You can either pass string elements or pass ReactNodes to the as prop.
Card example
API Reference
Prop | Type | Default |
|---|---|---|
as | string | React.ElementType | div |