SubComponents

Control

The control subcomponent is required to render the Control of the Password component. Because of this, this component extends the native inputarrow-up-right component props. Because of this, you can use all of the native props. This is a required children.

Control API

triangle-exclamation
Props
Type
Required

isDisabled

boolean

❌

controlledValue

string

❌

maxLength

number

❌

onChange

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

❌

customFilter

(e: string) => string

❌

chevron-rightcontrolledValuehashtag

The controlled value of the field

chevron-rightmaxLengthhashtag

The maximum length of the field

chevron-rightonChangehashtag

The function to be called when the input changes

chevron-rightcustomFilterhashtag

A custom filter function to be applied to the input

HelpText

The HelpText subcomponent extends the SDS HelpText component. See for reference: HelpText

Label

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

Last updated