shadcn.io is not affiliated with official shadcn/ui
Hover Reveal Team Block for React
Six people of an architecture practice as a bare list of names and roles; hovering or focusing a row opens a hover card with the bio, base city and previous studios, and every row is also a link to the profile.
Installation
Overview
A hover-card team list for React with Base UI, for Brackenwood, an architecture practice. A centred header sits over six hairline rows that run from rail to rail, each an initials avatar, a large name, a role and an arrow. Hover a row, or Tab to it, and a hover card shows a short bio, where the person is based and the studios they worked at before. A touch screen has no hover, so each row is also a link to the person's profile page, where the same facts belong. It's built from Hover Card, Avatar and Guides, with CSS transitions and your theme's tokens for every colour. For practice and studio pages where the names are the point and the detail is a step away. Names, studios and bios are made up for the example.
FAQ
How do I change the people?
Edit PEOPLE at the top of the file. A person is a name, a role, a bio, a city and a previous string of studios; the initials come from the name. Point each row's href at the real profile page.
When does the hover card open?
When a mouse rests on a row for a moment, and when keyboard focus lands on it. It closes when the pointer or focus leaves, and on Escape. Hover is never the only way: on a touch screen the row is a link, so a tap goes to the profile where the card's facts are.
The row link is the hover card's trigger: Base UI's preview card trigger is an anchor itself, so the row's classes and href sit on HoverCardTrigger.
How does it work with a keyboard?
Tab moves from row to row; the card opens on each after a short delay, so tabbing quickly through the list doesn't flash cards. Enter follows the link, and Escape closes an open card. Each name is an h3 inside its link, so a screen reader can list the people by heading.
What do people on a touch screen get?
A tap on a row follows its link to the profile page. The card never opens on touch, so nothing is hidden behind it: the bio, city and previous studios belong on that page too.
Related
- Pro
Accordion Profiles Team
Tabs and accordionsTen people of a recruiting-tool company as hairline accordion rows that run from rail to rail; opening a row shows the department, a two-line bio, a personal quote and two text links, one row at a time.
- Pro
Profile Drawer Team
Lists and directoriesEight people of a design agency as rows that each open one side drawer with a quote, a bio and three career figures, with Previous and Next buttons that step through the team without closing the drawer.
- Pro
Hover Card Mosaic Team
Grids and wallsThe planners of an interior-planning studio as a mosaic of mixed spans that shares its hairlines: a two-by-two lead cell, two wide cells, three small ones and a +12 cell, each person a link with a hover card that opens on hover and on focus.
- Pro
Hover Preview FAQ
Ways to revealA FAQ for a courier tracking portal where hovering or focusing a question shows a hover card with a one-line summary, and opening it shows the full answer.
- Pro
Minimal Avatars Team
Carousels and reelsA single quiet strip: twelve overlapping initials avatars and a +12 count, each avatar a focusable link whose name and role show in a tooltip, with one line under it that says how many people work in how many countries.
- Pro
Alumni Tenure Table Team
Lists and directoriesA table of alumni with the role they had, a tenure bar on a 0 to 8 year axis and the company they are at now, beside three figures counted from the list: alumni, companies and median stay.