Ori Logo
Command Palette
Search for a command to run
0

Gallery

A simple gallery component to display images.


Gallery Component 1Gallery Component 2

Installation

Usage

<script lang="ts">
    import { Gallery } from "$lib/components/ori/gallery";
    const images = [
        { src: "https://picsum.photos/seed/1/800/600", alt: "Image 1" },
        { src: "https://picsum.photos/seed/2/800/600", alt: "Image 2" },
        { src: "https://picsum.photos/seed/3/800/600", alt: "Image 3" },
    ];
</script>

<Gallery {images} />

Props

Prop Type Default Description
images Image[] [] Array of image objects to render inside the slider
class string ” Additional CSS classes for custom container styling

Image Object Props

Property Type Description
src string Image URL or path
alt string Alt text for accessibility