Description
Field.Expiry
is a wrapper component for the input of strings, with user experience tailored for expiry dates for payment cards.
import { Field } from '@dnb/eufemia/extensions/forms'render(<Field.Expiry />)
Demos
The locale is what determines the components placeholder
format .e.g. mm/åå
in norwegian, mm/yy
in english.
English (US) is not included in Eufemia by default. You can include it like:
import enUS from '@dnb/eufemia/shared/locales/en-US'<EufemiaProvider locale={enUS} ...>App</EufemiaProvider>