Contact

Use to display customer's or user's contact information.

Summary
Default

contact-default


VStack(alignment: .leading, spacing: Spacing.small) {
  PBContact(type: .cell, value: "3491859988")
  PBContact(value: "5555555555")
  PBContact(type: .email, value: "email@example.com")
  PBContact(type: .work, value: "3245627482")
  PBContact(type: .workCell, value: "3245627482")
}


Detail Indicator

contact-detail-indicator


VStack(alignment: .leading, spacing: Spacing.small) {
  PBContact(type: .cell, value: "3491859988", detail: true)
  PBContact(value: "5555555555", detail: true)
  PBContact(type: .email, value: "email@example.com", detail: true)
  PBContact(type: .work, value: "3245627482", detail: true)
  PBContact(type: .ext, value: "1234", detail: true)
}


Props

Name Type Description Default Values
detail Bool Displays text describing the Contact's type false true false
contactValue String Sets the Contact's text value
type ContactType Sets the icon .home cell email home work workCell wrongPhone ext custom