Skip to content

Slider

Just a slider.

Terminal window
npx @sv/components slider

Example



/* @jsxImportSource vue */
import { Image } from "package:/components/Image";
import { Slider } from "@components/src/vue/Slider";
export const SomeSlider = () => (
<Slider>
<div class="h-[500px] w-full flex-none p-2">
<Image class="h-full w-full p-2" />
</div>
<div class="h-[500px] w-full flex-none p-2">
<Image class="h-full w-full p-2" />
</div>
<div class="h-[500px] w-full flex-none p-2">
<Image class="h-full w-full p-2" />
</div>
<div class="h-[500px] w-full flex-none p-2">
<Image class="h-full w-full p-2" />
</div>
<div class="h-[500px] w-full flex-none p-2">
<Image class="h-full w-full p-2" />
</div>
<div class="h-[500px] w-full flex-none p-2">
<Image class="h-full w-full p-2" />
</div>
</Slider>
);