BetaPublic beta — Read the release notes
Documentation

Lightbox

Image and media overlay viewer with navigation controls.

Package
@solidiom/lightbox
Version
0.6.0
Status
experimental

Generated from the package's public source.

API

Backdropcomponent

                        Backdrop(props: LightboxBackdropProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

CloseButtoncomponent

                        CloseButton(props: LightboxCloseButtonProps): Element
                      

Props

class?
string

children: Element

View source

Contentcomponent

                        Content(props: LightboxContentProps): Element
                      

Props

class?
string
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties

children: Element

View source

Countercomponent

                        Counter(props: LightboxCounterProps): Element
                      

Props

class?
string

children: Element

View source

Imagecomponent

                        Image(props: LightboxImageProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

LightboxBackdropPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

LightboxCloseButtonPropsinterface

Props

class?
string

children: Element

View source

LightboxContentPropsinterface

Props

class?
string
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties

children: Element

View source

LightboxCounterPropsinterface

Props

class?
string

children: Element

View source

LightboxImagePropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

LightboxIteminterface

Props

alt?
string
src
string

View source

LightboxNextButtonPropsinterface

Props

class?
string

children: Element

View source

LightboxPrevButtonPropsinterface

Props

class?
string

children: Element

View source

LightboxRootPropsinterface

Props

defaultIndex?
number — Default starting index.
defaultOpen?
boolean — Default open state (uncontrolled).
items?
LightboxItem[] — Items to display in the lightbox.
loop?
boolean — Whether navigation loops.
onOpenChange?
(open: boolean, details: ChangeDetails<DisclosureReason>) => void — Called when open state change is requested.
open?
Accessor<boolean> — Controlled open state.

children: Element

View source

NextButtoncomponent

                        NextButton(props: LightboxNextButtonProps): Element
                      

Props

class?
string

children: Element

View source

PrevButtoncomponent

                        PrevButton(props: LightboxPrevButtonProps): Element
                      

Props

class?
string

children: Element

View source

Rootcomponent

                        Root(props: LightboxRootProps): Element
                      

Props

defaultIndex?
number — Default starting index.
defaultOpen?
boolean — Default open state (uncontrolled).
items?
LightboxItem[] — Items to display in the lightbox.
loop?
boolean — Whether navigation loops.
onOpenChange?
(open: boolean, details: ChangeDetails<DisclosureReason>) => void — Called when open state change is requested.
open?
Accessor<boolean> — Controlled open state.

children: Element

View source