Skip to content

Official government website An official website of the Federal Government of Nigeria

How you know
Federal Ministry of Communications, Innovation & Digital Economy Nigerian Design Standards

Contact block

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.

Updated

Live example

Contact block

Contact us

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

Controls
Property Control What it does
Full or Compact
“Contact us” by default
Show heading
Turn off when the page already has one

Contact block

Wrap in a contact section or footer landmark

<address class="nds-contact-block nds-contact-block--full">  <h2 class="nds-contact-block__heading">    Contact us  </h2>  <div class="nds-contact-block__items">    <div class="nds-contact-item">      <div class="nds-contact-item__icon" aria-hidden="true">        <svg class="nds-contact-item__icon-svg" width="20" height="20" focusable="false" aria-hidden="true">          <use href="#nds-icon-mail">          </use>        </svg>      </div>      <div class="nds-contact-item__body">        <p class="nds-contact-item__label">          Email        </p>        <a class="nds-link nds-link--lg" href="mailto:info@fmic.gov.ng">          info@fmic.gov.ng        </a>      </div>    </div>    <div class="nds-contact-item">      <div class="nds-contact-item__icon" aria-hidden="true">        <svg class="nds-contact-item__icon-svg" width="20" height="20" focusable="false" aria-hidden="true">          <use href="#nds-icon-phone">          </use>        </svg>      </div>      <div class="nds-contact-item__body">        <p class="nds-contact-item__label">          Phone        </p>        <a class="nds-link nds-link--lg" href="tel:+2348001234567">          0800 123 4567        </a>      </div>    </div>    <div class="nds-contact-item">      <div class="nds-contact-item__icon" aria-hidden="true">        <svg class="nds-contact-item__icon-svg" width="20" height="20" focusable="false" aria-hidden="true">          <use href="#nds-icon-map-pin">          </use>        </svg>      </div>      <div class="nds-contact-item__body">        <p class="nds-contact-item__label">          Offices        </p>        <div class="nds-contact-item__entries">          <div class="nds-contact-item__entry">            <p class="nds-contact-item__entry-region">              Federal Capital Territory            </p>            <p class="nds-contact-item__entry-text">              Federal Secretariat, Phase 1              <br />              Shehu Shagari Way, Abuja            </p>          </div>          <div class="nds-contact-item__entry">            <p class="nds-contact-item__entry-region">              Lagos            </p>            <p class="nds-contact-item__entry-text">              Alausa Secretariat, Block 5              <br />              Ikeja            </p>          </div>          <div class="nds-contact-item__entry">            <p class="nds-contact-item__entry-region">              Kano            </p>            <p class="nds-contact-item__entry-text">              Audu Bako Secretariat              <br />              Kano            </p>          </div>        </div>      </div>    </div>    <div class="nds-contact-item">      <div class="nds-contact-item__icon" aria-hidden="true">        <svg class="nds-contact-item__icon-svg" width="20" height="20" focusable="false" aria-hidden="true">          <use href="#nds-icon-clock">          </use>        </svg>      </div>      <div class="nds-contact-item__body">        <p class="nds-contact-item__label">          Opening hours        </p>        <p class="nds-contact-item__text">          Monday to Friday, 8am to 4pm          <br />          Closed on public holidays        </p>      </div>    </div>  </div></address>

Usage

<!-- wp:nds/contact-block {} --><address class="nds-contact-block nds-contact-block--full">  <h2 class="nds-contact-block__heading">    Contact us  </h2>  <div class="nds-contact-block__items">    <div class="nds-contact-item">      <div class="nds-contact-item__icon" aria-hidden="true">        <svg class="nds-contact-item__icon-svg" width="20" height="20" focusable="false" aria-hidden="true">          <use href="#nds-icon-mail">          </use>        </svg>      </div>      <div class="nds-contact-item__body">        <p class="nds-contact-item__label">          Email        </p>        <a class="nds-link nds-link--lg" href="mailto:info@fmic.gov.ng">          info@fmic.gov.ng        </a>      </div>    </div>    <div class="nds-contact-item">      <div class="nds-contact-item__icon" aria-hidden="true">        <svg class="nds-contact-item__icon-svg" width="20" height="20" focusable="false" aria-hidden="true">          <use href="#nds-icon-phone">          </use>        </svg>      </div>      <div class="nds-contact-item__body">        <p class="nds-contact-item__label">          Phone        </p>        <a class="nds-link nds-link--lg" href="tel:+2348001234567">          0800 123 4567        </a>      </div>    </div>    <div class="nds-contact-item">      <div class="nds-contact-item__icon" aria-hidden="true">        <svg class="nds-contact-item__icon-svg" width="20" height="20" focusable="false" aria-hidden="true">          <use href="#nds-icon-map-pin">          </use>        </svg>      </div>      <div class="nds-contact-item__body">        <p class="nds-contact-item__label">          Offices        </p>        <div class="nds-contact-item__entries">          <div class="nds-contact-item__entry">            <p class="nds-contact-item__entry-region">              Federal Capital Territory            </p>            <p class="nds-contact-item__entry-text">              Federal Secretariat, Phase 1              <br />              Shehu Shagari Way, Abuja            </p>          </div>          <div class="nds-contact-item__entry">            <p class="nds-contact-item__entry-region">              Lagos            </p>            <p class="nds-contact-item__entry-text">              Alausa Secretariat, Block 5              <br />              Ikeja            </p>          </div>          <div class="nds-contact-item__entry">            <p class="nds-contact-item__entry-region">              Kano            </p>            <p class="nds-contact-item__entry-text">              Audu Bako Secretariat              <br />              Kano            </p>          </div>        </div>      </div>    </div>    <div class="nds-contact-item">      <div class="nds-contact-item__icon" aria-hidden="true">        <svg class="nds-contact-item__icon-svg" width="20" height="20" focusable="false" aria-hidden="true">          <use href="#nds-icon-clock">          </use>        </svg>      </div>      <div class="nds-contact-item__body">        <p class="nds-contact-item__label">          Opening hours        </p>        <p class="nds-contact-item__text">          Monday to Friday, 8am to 4pm          <br />          Closed on public holidays        </p>      </div>    </div>  </div></address><!-- /wp:nds/contact-block -->

Usage

import { ContactBlock } from "@nigerian-design-standards/react";<ContactBlock  heading="Contact us"/>

Usage

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 Dividers are decorative
Value text Body/medium · text/primary 17.6:1
Labels and hours text/secondary 6.6:1
Email and phone nds-link, underlined 5.6:1 (visited 6.6:1, flagged on nds-link)
Icons icon/Mail · Phone · Map Pin · Clock, 20px, text/primary, decorative 17.6:1
In the footer Compact on surface/subtle 6.4:1 (icons)

Use cases

Do

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

Keep the same details in the footer and on the contact page.

Don’t

Email

Email us

Don’t write “Click here” or “Email us” as the link text. Show the address or number.

Layout

How a contact block sits on a page.

Natural width on desktop
Full is 400px; Compact is 320px. Lines wrap; content is never cut off.
Full width on mobile
The block fills the column on small screens.
Up to 3 per line
Phone numbers and emails sit on one line, separated by commas. Addresses stack with 8px between them.
Several offices
Each office has its state as a label. Put a divider between offices.
More than 3
Too many for one block. Link to a dedicated page or a table of offices.

Copywriting

How to write contact details.

Email

One shared inbox someone reads, in full and lower case: info@fmic.gov.ng.

Phone

Group the digits the way people read them: 0800 123 4567.

Toll free and abroad

Say if it’s toll free, and add +234 for people calling from abroad.

Address
One line per part, ending with the city.
Opening hours
“Monday to Friday, 8am to 4pm”.
Exceptions
“Closed on public holidays”, on its own line.

Examples

Contact block copywriting examples
Write Don’t write Why
info@fmic.gov.ng Email us Shows the address.
0800 123 4567 08001234567 Grouped for reading.
Monday to Friday, 8am to 4pm Mon–Fri 0800–1600 Plain words.
Visiting addresses Addresses Says what they’re for.
Closed on public holidays See website Says when it’s closed.

Accessibility

Meaning never relies on colour alone: links are underlined, and each line is named by its label, or by hidden label text in Compact.

Keyboard interaction for contact links
Key What it does
Tab Email, then phone, in the order shown. Address and hours are read but not focusable.
Shift + Tab Moves back.
Enter or Space Opens the mail app on email. On a phone, a number starts the call.
  • The block is an <address> element so screen readers read it as contact text (WCAG 1.3.1).
  • Links show the address or phone number itself so they make sense out of context (WCAG 2.4.4).
  • Icons are decorative with aria-hidden. Labels carry the meaning (WCAG 1.1.1).
  • Compact keeps labels as visually hidden text so each line is still named (WCAG 1.3.1).
  • Text contrast is 17.6:1. Label contrast is 6.6:1. Visited links are 6.6:1 (flagged on nds-link) (WCAG 1.4.3).

For developers

Copy the code for HTML, WordPress or React from the Code tab in Live example. The options are listed under Specifications.

For designers

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.

References

Feedback

Report a problem with this page