Skip to main content

Contact Block

A starter contact block: an address, a phone, a mobile, an email and a web address, each beside its icon.

  • Five rows, each beside its icon. A two-column table sets icon-location, icon-phone, icon-mobile, icon-email and icon-web beside the address, phone, mobile, email and web.
  • Placed in the flow. A use in the content places it where the details belong, with all five params, since every row is drawn.
  • Restyled by name. cbText sets the text and cbIcon the icon cell; the icons' own iconInk and iconSize set their colour, line and width.
  • Two variants. contact-block-short keeps three rows under the same style names, and contact-block-inline sets four details on one line for a footer.

Place it where the details belong and pass all five; every row is drawn, so pass each one:

{ "use": { "name": "contact-block", "params": { "address": "Studio 3, 14 Rue des Palmiers, Port Aster", "phone": "+237 6 55 01 20 40", "mobile": "+237 6 77 41 08 12", "email": "aicha.mbarga@sanaga.example", "web": "sanaga.example/banking-app" } } }
ParamWhat it fills
addressthe row beside the map pin
phonethe row beside the handset
mobilethe row beside the mobile phone
emailthe row beside the envelope
webthe row beside the globe

Restyle the text with cbText, the icon cell with cbIcon, and the icons with iconInk (their colour and line) and iconSize (their width). The Engagement Letter places it under its day-to-day contact's name and draws the icons in its own purple. For a different set of rows, place the icons yourself. See Customizing a component.

Variants​

ComponentWhat differsUsed by
contact-block-shortthree rows: phone, email and web. It uses the same style names as contact-block, so one restyle covers both.Reference letter
contact-block-inlineaddress, phone, email and web side by side on one line, for a footer or a narrow band. Restyle with cbiText and cbiIcon.Reference letter, on the foot of every page

Features used: tables, SVG, data binding, components

The component on a sheet of its ownTry in Playground →