ContactCard

A card that turns over on a spring. The front is who they are; the back is how to reach them, and each line copies on a press. Cards.

Open playground

Mara Okafor

Product designer

About

ContactCard is a React component in the Cards category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { ContactCard } from "@ashutoshswamy/smoui" and set name, avatar, details.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { ContactCard } from "@ashutoshswamy/smoui";

<ContactCard name="Mara Okafor" role="Product designer" details={[{ label: "Email", value: "mara@example.com", icon: "envelope" }]} />

Props 3

name / role

Who they are.

string
avatar

Photo URL. Without one a mesh avatar is made from the name.

string
details

Lines on the back. Each copies its value.

{ label; value; icon? }[]