Lightbox
Image and media overlay viewer with navigation controls.
Generado a partir del código fuente público del paquete.
API
Backdropcomponente
Backdrop(props: LightboxBackdropProps): Element
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
CloseButtoncomponente
CloseButton(props: LightboxCloseButtonProps): Element
Propiedades
class?string
hijos: Element
Contentcomponente
Content(props: LightboxContentProps): Element
Propiedades
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
hijos: Element
Countercomponente
Counter(props: LightboxCounterProps): Element
Propiedades
class?string
hijos: Element
Imagecomponente
Image(props: LightboxImageProps): Element
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
LightboxBackdropPropsinterfaz
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
LightboxCloseButtonPropsinterfaz
Propiedades
class?string
hijos: Element
LightboxContentPropsinterfaz
Propiedades
class?stringref?(el: HTMLDivElement) => voidstyle?string | CSSProperties
hijos: Element
LightboxCounterPropsinterfaz
Propiedades
class?string
hijos: Element
LightboxImagePropsinterfaz
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
LightboxIteminterfaz
Propiedades
alt?stringsrcstring
LightboxNextButtonPropsinterfaz
Propiedades
class?string
hijos: Element
LightboxPrevButtonPropsinterfaz
Propiedades
class?string
hijos: Element
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
NextButtoncomponente
NextButton(props: LightboxNextButtonProps): Element
Propiedades
class?string
hijos: Element
PrevButtoncomponente
PrevButton(props: LightboxPrevButtonProps): Element
Propiedades
class?string
hijos: Element
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