@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
25 lines (24 loc) • 811 B
TypeScript
export interface AddressProps {
/** An object or string representing the address.
If parsed the object contains the following:
streetAddress: street number, name, if applicable apt/unit number
muni: municipality/city/town
state: state
zip: zipcode
country: country
If a simple string just passed as:
address: full address. */
address: {
streetAddress?: string;
muni?: string;
state?: string;
zip?: string;
country?: string;
} | string | object;
/** A link to the directions of the address. */
directionLink?: string;
/** Details around visiting the address. */
details?: string | object;
}
declare const Address: (props: AddressProps) => any;
export default Address;