0Views
0Copies

API Reference
Props for <PegboardIDCard />
| Prop | Type | Default | Description |
|---|---|---|---|
| boardHighlight | string | "#ffffff" | The board's lit top-left corner. |
| boardColor | string | "#fbfaf7" | The middle of the board. |
| boardShade | string | "#f1eee8" | The board's shaded bottom-right corner. |
| boardEdge | string | "#e7e1d7" | The board's lower side. |
| slotTop | string | "#c8bfb2" | The darkest part of a hole. |
| slotMiddle | string | "#dcd5ca" | The middle of a hole. |
| slotBottom | string | "#ebe6de" | The bottom of a hole. |
| slotRim | string | "#ffffff" | The light caught by the lower rim of a hole. |
| accentLight | string | "#ff7a45" | The lit side of the hook, the band and the card's back. |
| accentColor | string | "#ff5b1f" | The hook, the lanyard, the band and the card's back. |
| accentDeep | string | "#d9440e" | The shaded side of the hook, the band and the card's back. |
| bandTextColor | string | "#ffffff" | The words on the band and the names on the back. |
| cardColor | string | "#ffffff" | The card's front. |
| cardShade | string | "#f8f6f1" | The bottom of the card's front. |
| inkColor | string | "#e04a10" | The handwriting. |
| labelColor | string | "#1d1b18" | The printed labels and the dotted lines. |
| tileColor | string | "#ffffff" | The logo tiles and the status pill on the back. |
| statusTextColor | string | "#e04a10" | The text in the status pill. |
| statusColor | string | "#22b45d" | The dot in the status pill. |
| metalColor | string | "#d9d6d0" | The edge of the metal clip. |
| metalLight | string | "#f7f6f3" | The glint on the metal clip. |
| metalDark | string | "#a9a49b" | The shaded side of the metal clip. |
| shadowColor | string | "#4a3016" | Every shadow on the board. |
| Prop | Type | Default | Description |
|---|---|---|---|
| image | string | "/motionuikit/images/ava-reyes-female-portrait.webp" | The photo on the card. |
| bandText | string | "Product designer" | The words rolling up the band; empty leaves it plain. |
| fields | Array<{ label, value }> | [{"label":"Name","value":"Ava Reyes"},{"label":"Fuelled by","value":"Matcha & lo-fi"},{"label":"I love to","value":"Sketch & prototype"}] | The lines under the photo; with fewer, the photo grows. |
| tools | Array<{ name, icon, image }> | [{"name":"Figma","icon":"figma","image":""},{"name":"Framer","icon":"framer","image":""},{"name":"Adobe XD","icon":"adobe-xd","image":""}] | The logos on the card's back. |
| status | string | "Open to work" | The pill on the back; empty hides it. |
| bandFont | FontValue | {"fontFamily":"Anton","fontWeight":400,"fontSize":21} | The band's words. The component doesn't load the font: add it to your app. |
| handFont | FontValue | {"fontFamily":"Caveat","fontWeight":400,"fontSize":14.5} | The handwritten lines. The component doesn't load the font: add it to your app. |
| labelFont | FontValue | {"fontFamily":"Inter","fontWeight":600,"fontSize":6.5} | The printed labels, and the family of the back's text. The component doesn't load the font: add it to your app. |
| Prop | Type | Default | Description |
|---|---|---|---|
| flip | 'hover' | 'click' | 'none' | "click" | What turns the card over to its back. |
| draggable | boolean | true | Lets the card be dragged, or moved with the arrow keys, to another hole. |
| swing | number | 7 | How far the card swings when nudged; 0 turns it off. |
| carryLean | number | 14 | How far the card leans while it is carried; 0 turns it off. |
| lift | number | 1.05 | How much the card grows while it is carried. |
| bandDuration | number | 11 | How long the band's words take for one loop. |
| bandReverse | boolean | false | Rolls the band's words downward. |
| scale | number | 1.15 | Size of the board's pattern and the card together; they shrink when the card wouldn't fit. |
| cardWidth | number | 200 | Width of the card; its height follows. |
| cardRadius | number | 10 | The card's corner radius, on a card 160px wide. |
| bandWidth | number | 32 | Width of the band, on a card 160px wide; 0 hides it. |
| photoTilt | number | -1.5 | How far the photo is tilted. |
| photoY | number | 30 | Which part of a tall photo shows, from its top. |
| radius | number | 18 | The board's corner radius. |
| margin | number | 30 | Least space between the outermost holes and the board's edge. |
| pitch | number | 40 | Distance between two holes in a row. |
| slotWidth | number | 6 | Width of a hole. |
| slotHeight | number | 15 | Height of a hole; it never reaches the next row. |
| Prop | Type | Default | Description |
|---|---|---|---|
| hoverHold | number | 1.6 | How long a tap keeps the card turned on a touch screen. |
| flipStiffness | number | 110 | Stiffness of the spring that turns the card over. |
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | — | Names the card for screen readers, before what is written on it. |
Motion score
Compositor-only
- Category
- Cards
- Framework
- React
- Published
- Nov 27, 2026
- Dependencies
- Variants
Pegboard ID Card: a 3D card animation for React
An ID card hung on a pegboard by an orange clip, with a vertical PRODUCT DESIGNER band, a photo and a handwritten name. It turns a team member or a profile into an object that feels real enough to pick up.
Use Pegboard ID Card for team pages, speaker profiles, event badges or an About section with personality. It's a Pro React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.
What is Pegboard ID Card?#
Pegboard ID Card is a 3D card animation for React that shows a person's ID badge hanging on a pegboard. The card has a role band down one side, a photo, a handwritten name and short fields underneath, so it reads like a real badge rather than a profile box.
How Pegboard ID Card works#
The card hangs from an orange clip on a wall of pegboard holes, with depth and shadow that make it look like a physical object. The bold vertical band shows the role, and the handwritten name and fields give it a hand-made, personal feel.
Customization options#
Pick a variant, Default, Mono, Volt, Lilac or Cobalt, or set your own colors for the board, holes, accent, card and text in the Customize panel. Replace the photo, role, name and fields with your own, save the look, and install it.
Use cases#
- Team and About pages that want each person to feel real.
- Event and conference badges for speakers or attendees.
- Personal portfolios, as a playful introduction card.
FAQs#
Five: Default, Mono, Volt, Lilac and Cobalt. Pick one in the live preview, or set your own colors in the Customize panel.
Yes. Replace the photo, role band, handwritten name and fields with your own. You get the full source code to edit.
No. It's a Pro component, included in every paid plan. Anything you install stays yours after a plan ends.
React in Next.js, Vite and Astro, styled with Tailwind CSS v4. In a JavaScript project, the CLI converts it to
.jsx as it installs.