BetaBeta pública — Consulta las notas de lanzamiento
Documentación

Lightbox

Image and media overlay viewer with navigation controls.

Paquete
@solidiom/lightbox
Versión
0.6.0
Estado
experimental

Generado a partir del código fuente público del paquete.

API

Backdropcomponente

                        Backdrop(props: LightboxBackdropProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

CloseButtoncomponente

                        CloseButton(props: LightboxCloseButtonProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

Contentcomponente

                        Content(props: LightboxContentProps): Element
                      

Propiedades

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

hijos: Element

Ver código fuente

Countercomponente

                        Counter(props: LightboxCounterProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

Imagecomponente

                        Image(props: LightboxImageProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

LightboxBackdropPropsinterfaz

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

LightboxCloseButtonPropsinterfaz

Propiedades

class?
string

hijos: Element

Ver código fuente

LightboxContentPropsinterfaz

Propiedades

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

hijos: Element

Ver código fuente

LightboxCounterPropsinterfaz

Propiedades

class?
string

hijos: Element

Ver código fuente

LightboxImagePropsinterfaz

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

LightboxIteminterfaz

Propiedades

alt?
string
src
string

Ver código fuente

LightboxNextButtonPropsinterfaz

Propiedades

class?
string

hijos: Element

Ver código fuente

LightboxPrevButtonPropsinterfaz

Propiedades

class?
string

hijos: Element

Ver código fuente

LightboxRootPropsinterfaz

Propiedades

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.

hijos: Element

Ver código fuente

NextButtoncomponente

                        NextButton(props: LightboxNextButtonProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

PrevButtoncomponente

                        PrevButton(props: LightboxPrevButtonProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

Rootcomponente

                        Root(props: LightboxRootProps): Element
                      

Propiedades

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.

hijos: Element

Ver código fuente