Skip to content

NationalIdentityNumber

Demos

Empty

<Field.NationalIdentityNumber
onChange={(value) => console.log('onChange', value)}
/>

Omit mask

<Field.NationalIdentityNumber
onChange={(value) => console.log('onChange', value)}
omitMask
/>

Placeholder

<Field.NationalIdentityNumber
placeholder="Enter 11 digits..."
onChange={(value) => console.log('onChange', value)}
/>

Label

<Field.NationalIdentityNumber
label="Label text"
onChange={(value) => console.log('onChange', value)}
/>

Label and value

<Field.NationalIdentityNumber
label="Label text"
value="01017501234"
onChange={(value) => console.log('onChange', value)}
/>

Disabled

<Field.NationalIdentityNumber
value="01010101010"
label="Label text"
onChange={(value) => console.log('onChange', value)}
disabled
/>

Error

This is what is wrong...
<Field.NationalIdentityNumber
value="007"
label="Label text"
onChange={(value) => console.log('onChange', value)}
error={new FormError('This is what is wrong...')}
/>

Validation - Required

<Field.NationalIdentityNumber
value="12345678901"
label="Label text"
onChange={(value) => console.log('onChange', value)}
required
/>