ortaui
  1. Components
  2. Overlays

Lightbox

A Dialog with prev/next buttons, arrow-key cycling (wraps), an info panel slot, a counter and the dialog rise motion. Click a thumbnail.

Installation#

npx shadcn add @ortaui/lightbox

Examples#

Stage only#

With info panel#

API reference#

PropTypeDefaultDescription
open / onOpenChangeboolean / (open) => void-Controlled open state.
titlestring-Accessible name (visually hidden).
index / onIndexChangenumber / (index) => void-Current item, 0-based.
countnumber-Total items; prev/next and arrow keys wrap.
infoReactNode-Side panel content. Omit for a stage-only lightbox.
childrenReactNode-The stage: render the current item.