Files
web/packages/design-system/lib/components/Form/Country/country.ts
T
Hrishikesh Vaipurkar 2f72a0437b Merged in chore/SW-3145-move-country (pull request #2545)
chore: SW-3145 Moved country into design system

* chore: SW-3145 Moved country into design system


Approved-by: Anton Gunnarsson
2025-07-10 12:20:49 +00:00

22 lines
492 B
TypeScript

import type { RegisterOptions } from 'react-hook-form'
export type CountryProps = {
autoComplete?: string
className?: string
errorMessage?: string
label: string
countries: {
code: string
name: string
displayName?: string
}[]
lang?: string
name?: string
placeholder?: string
readOnly?: boolean
registerOptions?: RegisterOptions
}
export type CountryPortalContainer = HTMLDivElement | undefined
export type CountryPortalContainerArgs = HTMLDivElement | null