All components

XEHkit / PeopleCard

Auto-advancing portraits with swipe, scroll handle, and keyboard control.

Sourcedescription.md

The people behind the work.

Abhilasha Ray, Marketing head

LADY OF THE TEAM

Abhilasha Ray

Marketing head

Interview-free working, but here is what matters. Swipe the portrait or use the side handles to rotate the team.

Live preview. Swipe the portrait or use the arrow keys.

PeopleCard

The people behind the work card. One half of the frame holds the portraits, the other holds the info. Portraits auto-advance on a timer; hovering or focusing the portrait half pauses it. A vertical handle on the portrait edge scrolls manually, and swiping the portrait upward rolls to the next person. The info follows along.

Props

Prop Type Default Notes
heading string required Section heading.
eyebrow string unset Eyebrow line above the heading.
members Person[] required At least one person. Order is the display order.
rollMs number 4000 Milliseconds per portrait before the card rolls on.

Each Person carries name, role, image, href, label, body, and optional width and height for the portrait.

Usage

import { PeopleCard } from "@xeh/xehkit/components/people-card/PeopleCard";
import "@xeh/xehkit/xehkit.css";

<PeopleCard
  heading="The people behind the work."
  members={[
    {
      name: "Dev Borah",
      role: "Founder, lead developer",
      image: "/team/dev.jpg",
      href: "https://gitlab.com/bitzzdev",
      label: "Engineering",
      body: "Builds the tools and writes the code.",
    },
  ]}
/>

Notes

  • Client component. No dependencies beyond React.
  • Keyboard support: Arrow keys move between people.
  • Portrait images render grayscale until active.