chore/SW-3145 Moved Phone to design system * chore/SW-3145 Moved Phone to design system * chore: SW-3145 Moved phone and removed intl direct dependency Approved-by: Anton Gunnarsson
22 lines
469 B
TypeScript
22 lines
469 B
TypeScript
import type { RegisterOptions } from 'react-hook-form'
|
|
|
|
export interface PhoneProps {
|
|
ariaLabel?: string
|
|
className?: string
|
|
countryLabel?: string
|
|
countrySelectorName?: string
|
|
countriesWithTranslatedName: {
|
|
code: string
|
|
displayName?: string
|
|
name: string
|
|
}[]
|
|
disabled?: boolean
|
|
errorMessage?: string
|
|
label: string
|
|
defaultCountryCode: string
|
|
name?: string
|
|
placeholder?: string
|
|
readOnly?: boolean
|
|
registerOptions?: RegisterOptions
|
|
}
|