Cards
Profile hover card
Profile hover card: Hovering or focusing a small avatar chip opens a profile panel with a name, handle, bio and follower counts.
Using Profile hover card
Profile hover card uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
openDelay | number | 250 | From 0 to 900; step 50 |
placement | select | bottom | Options: top, bottom, left, right |
showStats | boolean | true | No additional limit in the metadata. |
accent | color | #7C5CFF | No additional limit in the metadata. |
Which frameworks are available for Profile hover card?
Profile hover card is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Profile hover card depend on?
The React metadata lists these npm dependencies beyond React: motion, radix-ui.
What accessibility details are visible in Profile hover card?
The React source for Profile hover card includes: native elements (button); attributes and handlers (aria-controls, aria-expanded, aria-hidden, aria-label, onKeyDown); explicit roles (group); key comparisons (Escape). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Profile hover card handle reduced motion?
Profile hover card reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: spring: reduced ? { duration: 0.12 } : { type: "spring" as const, stiffness: 420, damping: 28, mass: 0.7 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.