
Timeline
Components
A card-to-drawer component for team profiles, portfolio entries, product details, service explainers, talent directories, editorial cards, and image-led collections where browsing should stay fast but details still need space.
Information Drawer turns a visual grid into an expandable detail system. The default export renders a built-in five-person team grid (DEFAULT_TEAM in the source), so showing your own cards means editing that array.
Each card opens a panel that slides in from the right with a larger portrait, name, role, a few paragraphs of bio, a LinkedIn link, an optional second image and a counter such as 2/5. On desktop the panel takes 70% of the width by default (sidebarWidth) and the grid stays visible behind a dimmed overlay, so the user keeps their place while exploring more detail. The drawer gives the selected item room to breathe without forcing a route change for every click.
Use Information Drawer when a page needs both overview and depth. It works for team pages, agency profiles, portfolio indexes, service libraries, product-card grids, creator directories, feature collections, editorial archives, and marketplace-style browsing where users should be able to inspect an item quickly and return to the grid.
The page job is context retention. The visitor should know what they selected, read the details, close the drawer, and continue browsing without feeling like the interface took them somewhere else.
import InformationDrawer from "@/components/effects/information-drawer"; export default function page() { return ( <> <InformationDrawer /> </> );}An agency can use Information Drawer on its team page. The grid shows portraits and names, while the drawer gives each person space for role, background, working style, and relevant links. Visitors can inspect team depth without loading a separate profile page for every person.
The outcome is speed with substance. The overview stays clean, but the page still has enough detail to build trust.
A SaaS company can use the same pattern for integration cards or feature modules. Each card stays compact, and the drawer explains what the integration does, when to use it, and where to go next.
Not for critical forms, checkout flows, legal content, dense documentation, long articles, or content that deserves its own permanent URL.
Not for hiding essential information that should be visible on the card itself. The drawer should deepen the item, not rescue an underwritten grid.
Not for long-form detail on small screens. Below 1024px the drawer already opens at full width, so it does not get cramped, but long bios still mean a lot of scrolling inside the panel.
Keep drawer content lightweight, optimize images, and avoid rendering every detailed panel at full cost before it is opened. Animate transform and opacity rather than layout-heavy properties.
The component already renders only the selected member's details in a single drawer rather than a hidden panel per card, so the main cost of a large grid is its images. Keep it that way if you extend it: do not ask the browser to carry fifty hidden profile biographies just in case someone feels curious.
Each card is a div with role="button" and tabIndex=0, so keyboard users can Tab to it and open the drawer with Enter or Space. The drawer closes with its labelled Close button or a click on the dimmed overlay. There is no Escape key handler, focus is not moved into the drawer when it opens, and it is not returned to the card when it closes, so add Escape support, focus management and focus return (or a full dialog pattern) where keyboard and screen-reader users matter. Keep the reading order logical and make selected states understandable.
Below 1024px the cards become a horizontally scrolling row with the name and role always showing, and the drawer opens at full width instead of as a narrow side panel. With reduced motion enabled, the drawer, overlay and content appear and disappear instantly with no slide or fade.
| Prop | Type | Default | Description |
|---|---|---|---|
duration | number | 0.65 | Drawer panel and overlay slide duration in seconds. |
contentDuration | number | 0.25 | Duration in seconds of the content fade, staged after the panel opens and before it closes. |
contentDelay | number | 0.4 | Delay in seconds before the staged content fades in, measured from when the drawer starts opening. |
delay | number | 0 | Delay before the drawer animation starts, in seconds. |
backgroundColor | color | #ffffff | Background color of the drawer panel. |
textColor | color | #111111 | Text and icon color inside the drawer panel. |
sidebarWidth | number | string | 70 | Desktop drawer width. Numbers are applied as a percentage (70 renders as "70%"). |
overlayOpacity | number | 0.2 | Backdrop opacity while the drawer is open. |
Information Drawer is a React component that opens detailed content from a selected card while keeping the user in the same page context.
Use it for team profiles, portfolio entries, product details, integration cards, service explainers, directories, and visual grids where users need quick access to deeper information.
Not exactly. A modal usually interrupts the page. A drawer is often more contextual: it slides in beside or over the existing layout while preserving a sense of where the user came from.
If the content is long, SEO-important, shareable, or part of a major conversion path, create a dedicated page. Use Information Drawer for compact detail expansion.
Out of the box the cards are keyboard-focusable buttons that open on Enter or Space, and the drawer has a labelled Close button. It does not close on Escape, move focus into the drawer or return focus to the card, so add those yourself, along with clear labels and a logical reading order.
It already adapts below 1024px: the cards become a horizontally scrolling row and the drawer opens at full width, so there is no narrow side panel squeezed onto a phone.
Need a custom effect? Tell us what to create.