Team Slide Reveal
An editorial portrait card that reveals a personal story in a rising sheet. Open the full card, then use the back control to return to the profile.
Installation#
pnpm dlx shadcn@latest add @davinciui/team-slide-revealUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
imagePortrait URL shown in the profile card and testimonial signature. | string | — |
imageAltAccessible portrait description. | string | — |
nameMember name displayed on both states. | string | "Takahashi Aya" |
roleRole or attribution line. | string | "CEO, Pentaclay" |
testimonialSummary shown after the card is opened. | string | — |
openControlled summary state. | boolean | — |
defaultOpenInitial summary state when uncontrolled. | boolean | false |
onOpenChangeCalled when the user opens or closes the summary. | (open: boolean) => void | — |
radiusOuter corner radius in pixels. | number | 14 |
durationSheet transition duration in milliseconds. | number | 480 |
compactUses the denser layout for compact preview cards. | boolean | false |
Accessibility#
The portrait is a role=button with aria-expanded and aria-controls; Enter or Space opens, Escape closes, and focus moves to the Back button then returns. The story sheet is aria-hidden while closed.
Motion#
The portrait image scales and the story sheet slides up over duration milliseconds (default 480) with a cubic-bezier ease. Text fades and lifts; motion-reduce:transition-none disables all transitions.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

