Subcomponents

Control

The control subcomponent is required to render the Control of the TextInput component. Because of this, this component extends the native ranged input component props. Because of this, you can use all of the native props. This is a required children.

triangle-exclamation

API

Props
Type
Required

rangeVisibility

boolean

❌

minValue

number

❌

maxValue

number

❌

hasInput

boolean

❌

value

number

❌

isDisabled

boolean

❌

hasError

boolean

❌

step

number

❌

onChange

(e: React.ChangeEvent<HTMLInputElement>) => void;

❌

chevron-rightrangeVisibilityhashtag

Set to true if you want the slider to show the range

chevron-rightminValue and maxValuehashtag

Maximum or minimum value of the slider

chevron-righthasInputhashtag

Set to true if you want to have an numeric input that affects the value.

chevron-rightstephashtag

Steps on which the input changes the values

Helptext

The helptext subcomponent renders the children passed below the field as a ReactNode. This is made like this so you can have full control over the component.

Helptext API

The control subcomponent is required to render the HelpText of the TextInput component. Because of this, this component extends the native span component props.

children

ReactNode

βœ…

Label

The Label subcomponent extends the SDS label component. See for reference: Label

Last updated