Skip to content

Description

Field.Expiry is a wrapper component for the input of strings, with user experience tailored for national identity number values.

import { Field } from '@dnb/eufemia/extensions/forms'
render(<Field.Expiry />)

Demos

Empty

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

Placeholder

Code Editor
<Field.Expiry
  placeholder="letters"
  onChange={(value) => console.log('onChange', value)}
/>