Address
Postal address validation with US zip code, ISO country code, and partial variant.
common
Install
$ npx shadcn@latest add @open-types/address
Source
export interface Address {
street: string;
street2?: string;
city: string;
state: string;
postalCode: string;
country: string;
}
export type PartialAddress = Partial<Address>;
export interface Address {
street: string;
street2?: string;
city: string;
state: string;
postalCode: string;
country: string;
}
export type PartialAddress = Partial<Address>;