Accordion Gallery
CreativeA selected image panel opens to reveal its label, story and action.
Try it
Add to your project
npx shadcn@latest add https://luv-jeri.github.io/cojeev-ui/r/accordion-gallery.jsonThe command includes the component’s shared dependencies. Your project keeps editable source files.
Using accordion gallery
Supply caller content and keep the example controls for accessible interaction.
API
Compose the exported parts below. The prop types are read from the React source during the registry build.
Native element or underlying primitive props are inherited where declared, including accessible labels, event handlers and refs.
AccordionGalleryProps
| Prop | Type | Required |
|---|---|---|
items | readonly AccordionGalleryItem[] | Yes |
defaultIndex | number | No |
selectedIndex | number | No |
onSelectionChange | (index:number)=>void | No |
orientation | "horizontal"|"vertical" | No |
Accessibility
Keyboard and touch controls; outgoing transition content is inert; reduced motion and shared stillness settle immediately.
States and appearance
For conditional content, keep a MotionPresence boundary around keyed MotionSurface children. The shared entrance and exit states work with native primitives and respect your motion preference.
Try pointer and keyboard interaction, and switch the appearance control in the navigation to compare light and dark mode. Motion respects reduced motion preferences.