Skip to content

Identity Card

IdentityCard renders official ID layouts — Ghana Card, Voter ID, Passport, and Driver License. Configure them with type and cardDetails.

Loading Code Block...

Use the control to switch type and inspect the matching cardDetails payload in the code panel.

ecowas
Ecowas Identity Card
Republic of Ghana
ghana flag
chip
sample_avatar
ghana-map

Surname/Nom

ASANTE

Firstnames/Prenoms

KWAME NKRUMAH

Nationality/Nationalite

GHANA

Date of Birth/Date de Naissance

15/09/1990

Personal ID Number

GHA-123456789-1

Sex/Sexe

m

Height/Taille (m)

1.75

Document Number/Numero du document

C123456789

Date of Issue/Date de delivrance

01/01/2020

Date of Expiry/Date d'expiration

01/01/2030
sample_avatar1234
Loading Code Block...

cardDetails.side is front or back.

ecowas
Ecowas Identity Card
Republic of Ghana
ghana flag
chip
sample_avatar
ghana-map

Surname/Nom

ASANTE

Firstnames/Prenoms

KWAME NKRUMAH

Nationality/Nationalite

GHANA

Date of Birth/Date de Naissance

15/09/1990

Personal ID Number

GHA-123456789-1

Sex/Sexe

m

Height/Taille (m)

1.75

Document Number/Numero du document

C123456789

Date of Issue/Date de delivrance

01/01/2020

Date of Expiry/Date d'expiration

01/01/2030
sample_avatar1234
Loading Code Block...

The front of the Ghana Card supports two visual variants — pick one with cardDetails.variant:

  • default — the standard layout with the holder’s photo, PIN, and thumbnail beside the chip.
  • no-image — a photo-less layout with a wider two-column field grid. Use this when a photo isn’t available (e.g. minimal card previews, print exports, or listings).

The back of the card is identical for both variants.

ecowas
Ecowas Identity Card
Republic of Ghana
ghana flag
chip
ghana-map

Surname/Nom

ASANTE

Firstnames/Prenoms

KWAME NKRUMAH

Nationality/Nationalite

GHANA

Sex/Sexe

m

Date of Birth/Date de
Naissance

15/09/1990

Height/Taille (m)

1.75

Personal ID Number

GHA-123456789-1

Document Number/Numero
du document

C123456789

Date of Issuance/Date
d'emission

01/01/2020

Date of Expiry/Date
d'expiration

01/01/2030
Loading Code Block...

PropsDefaultTypeDescription
type-'ghana-card' | 'voters-id' | 'passport' | 'driver-license'The type of identity document to display. Each type has its own data structure.
cardDetails{}objectData and configuration for the identity card. Structure varies by type.
PropsDefaultTypeDescription
surname-stringLast name of the card holder.
firstName-stringFirst name of the card holder.
nationality-stringNationality of the card holder.
dateOfBirth-stringDate of birth in DD/MM/YYYY format.
personalIDNumber-stringPersonal identification number.
documentNumber-stringDocument number of the card.
side'front''front' | 'back'Which side of the card to display.
variant'default''default' | 'no-image'Visual variant for the FRONT of the Ghana Card. 'no-image' renders a photo-less layout with a wider two-column field grid. The back layout is identical for both variants.
gender-'male' | 'female'Gender of the card holder.
height-stringHeight of the card holder in metres (e.g. '1.75').
dateOfIssue-stringDate the card was issued.
dateOfExpiry-stringDate the card expires.
PropsDefaultTypeDescription
surname-stringLast name of the voter.
firstName-stringFirst name of the voter.
gender-'male' | 'female'Gender of the voter.
dateOfBirth-stringDate of birth in DD/MM/YYYY format.
pollingStationNumber-stringAssigned polling station number.
voterIDNumber-stringUnique voter identification number.
dateOfRegistration-stringDate of voter registration.
PropsDefaultTypeDescription
passportNumber-stringPassport identification number.
surname-stringLast name of the passport holder.
firstName-stringFirst name of the passport holder.
nationality-stringNationality of the passport holder.
gender-'male' | 'female'Gender of the passport holder.
dateOfBirth-stringDate of birth in DD/MM/YYYY format.
placeOfBirth-stringPlace of birth.
dateOfIssue-stringDate the passport was issued.
dateOfExpiry-stringDate the passport expires.
placeOfIssue-stringPlace where the passport was issued.
PropsDefaultTypeDescription
licenseNumber-stringDriver license identification number.
surname-stringLast name of the license holder.
firstName-stringFirst name of the license holder.
gender-'male' | 'female'Gender of the license holder.
dateOfBirth-stringDate of birth in DD/MM/YYYY format.
nationality-stringNationality of the license holder.
classOfLicense-stringClass/category of the driving license.
dateOfIssue-stringDate the license was issued.
dateOfExpiry-stringDate the license expires.