This component extends the native <span>arrow-up-right API. That's why the className prop is not included in the table.
<span>
className
children
string
β
hasError
boolean
β
isDisabled
isReadOnly
The children in this case should always be a string, because we are using the span element innerly, so adding a <p> inside a <span> makes no sense.
span
<p>
The hasError prop sets the component state to an error state, changing its colors by the ones defined in the tokens.
Disables the component by changing its state.
This causes the component to be read only. This overrides the hasError state.
Live Demo
Code Sandboxarrow-up-right
Last updated 1 year ago