Etch component

Person Card 1

A card for a team member: photo, name and role, phone and email buttons on the photo, and an optional action such as Read Bio.

Person Card 1

Copy Person Card 1

Configurator settings

Change a setting in the configurator to include it.

Optional. Copies the component under its own name, such as News Card Alpha for a site.

Documentation

A team member card: photo, name and role, phone and email buttons, and an optional action such as "Read Bio". Put a few in a grid for a team page.

How to use it

  • Set Image, Name and Role. Without an image the card has no photo area, and the phone and email buttons sit under the role.
  • In Contact, Phone and Email take the plain number and address; the card adds tel: and mailto: itself. Both start empty, and an empty one hides its button. Phone Label and Email Label start the buttons' names, such as "Call Alex Morgan", so they can be translated.
  • In Action, a Label with a Link makes a link, such as to a bio page. Without a link it's a button, ready to open a drawer or a dialog. An empty Label hides it.
  • Put the person's bio in the Bio slot: a click anywhere on the card then opens it in a dialog, with the photo, the name and the role. The page needs one MAC Dialog 1, at the end of its template. With a bio, an Action without a Link, such as "Read Bio", is the card's visible cue; with a Link it stays a link of its own.

Good to know

  • The name is an h3 and comes first in the markup, and the photo shows above it. The photo is decorative (alt=""), because the name is right there.
  • With a bio, the name is the card's button, and its focus ring goes around the card. The phone and email buttons still work: they sit above it.

Reference

Read from the component's JSON, so it's always current.

Loading the reference