Skip to main content

Full Name Fields

Displaying a grouped input with first name and last name, usable in a controlled manner.

Storybook Docs

Props

NameTypeDefaultDescription
firstNamePropsTextInputProps-extends text input props If configured, the changes will apply to the firstName input
lastNamePropsTextInputProps-extends text input props If configured, the changes will apply to the lastName input
onChange((value: IFullNameFieldsValues) => void)-Callback function returning the value of the input that has just been changed
valueIFullNameFieldsValues-Allows setting the values of the two text input fields
...--extends flex props

IFullNameFieldsValues

NameTypeDefaultDescription
firstNamestring-Value of first name field
lastNamestring-Value of last name field