API
This component extends the native <span> API. That's why the className prop is not included in the table.
children
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.
hasError
The hasError prop sets the component state to an error state, changing its colors by the ones defined in the tokens.
isDisabled
Disables the component by changing its state.
isReadOnly
This causes the component to be read only. This overrides the hasError state.
Example