The organisation’s email, phone, address and opening hours in one place, so people can get in touch
without hunting through the site. Full for a contact page, Compact for a footer or sidebar.
use NDS\Components\ContactBlock;echo ContactBlock::render(['heading'=>'Contact us',]);
Overview
Use a contact block wherever people need the organisation’s own contact details: a contact page, an
about page, a service page, and every page footer. Keep the same details everywhere.
Use a contact block for
A contact, about or service page (Full)
Every page footer (Compact)
Up to 3 numbers or offices under one label
Don’t use a contact block for
A contact form (put the block beside it)
A person’s details (this block is for an office)
More than 3 offices (link to a table of offices)
Types
Full for a contact page; Compact for a footer or sidebar, with the labels visually hidden. Each line
can hold one value or up to 3.
Contact us
Email
info@fmic.gov.ng
Phone
0800 123 4567
Offices
Federal Capital Territory
Federal Secretariat, Phase 1
Shehu Shagari Way, Abuja
Lagos
Alausa Secretariat, Block 5
Ikeja
Kano
Audu Bako Secretariat
Kano
Opening hours
Monday to Friday, 8am to 4pm
Closed on public holidays
Full
A heading, then email, phone, address and opening hours, each with an icon and a label.
Contact us
Email
info@fmic.gov.ng
Phone
0800 123 4567, 0800 765 4321, 0800 222 3333
Address
Federal Capital Territory
Federal Secretariat, Phase 1
Shehu Shagari Way, Abuja
Opening hours
Monday to Friday, 8am to 4pm
Closed on public holidays
Compact
The same four lines with labels hidden, for a footer or sidebar.
Offices
Federal Capital Territory
Federal Secretariat, Phase 1
Shehu Shagari Way, Abuja
Lagos
Alausa Secretariat, Block 5
Ikeja
Kano
Audu Bako Secretariat
Kano
Several offices
Each office has its state as a label, with a divider between them.
Phone
0800 123 4567, 0800 765 4321, 0800 222 3333
Several numbers
Up to 3 numbers on one line, under one label that says what they're for.
Specifications
The properties of the contact block. The same in HTML, WordPress and React.
Contact block properties
Property
Type
Possible values
Description
heading
string
any text
Optional. “Contact us” by default. Use the right heading level for the page.
type
string
full default
compact
Compact hides the labels visually; they stay for screen readers.
email · phone
string
any text
Shown as links. Up to 3 phone numbers, each its own tel: link.
address · hours
string
any text
Up to 3 addresses. Opening hours in plain days and times.
Use an <address> tag inside the page’s contact section or the footer. Email and phone
must be links with mailto: and tel:; phone href values use
digits only. Icons are decorative (aria-hidden). On compact, keep labels as visually hidden
text so each line is still named.
Tokens
Contact block tokens and contrast
Part
Token
Contrast on the page
Block
surface/canvas · spacing/200 between lines · border/subtle between offices
Use Contact Block from 01 Library – Foundations. Pick full or compact, set each contact item, and keep
the row order. Match NDS documentation node 538:137352 for spacing and type styles.