sigilUI

Lightbox

Open media in a focused, dismissible overlay.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Lightbox } from "@sigil-ui/components";

Usage

<Lightbox trigger={<Button variant="outline">Open lightbox</Button>} src="https://placehold.co/640x360/png" alt="Placeholder image" caption="Image preview" />

CLI

npx @sigil-ui/cli add lightbox

Token Integration

Lightbox follows the Sigil component rules: styles resolve from var(--s-*), class names are mergeable through className, and the component is exported from @sigil-ui/components.