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-emailandicon-webbeside the address, phone, mobile, email and web. - Placed in the flow. A
usein the content places it where the details belong, with all five params, since every row is drawn. - Restyled by name.
cbTextsets the text andcbIconthe icon cell; the icons' owniconInkandiconSizeset their colour, line and width. - Two variants.
contact-block-shortkeeps three rows under the same style names, andcontact-block-inlinesets 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" } } }
| Param | What it fills |
|---|---|
address | the row beside the map pin |
phone | the row beside the handset |
mobile | the row beside the mobile phone |
email | the row beside the envelope |
web | the 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
| Component | What differs | Used by |
|---|---|---|
contact-block-short | three rows: phone, email and web. It uses the same style names as contact-block, so one restyle covers both. | Reference letter |
contact-block-inline | address, 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
- Output
- Template
- Data
The component on a sheet of its ownTry in Playground →