All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s
12 lines
450 B
JavaScript
12 lines
450 B
JavaScript
// components/Carousel.js
|
|
import { h } from "sigpro";
|
|
|
|
export const Carousel = (props, children) => {
|
|
children === undefined && (children = props, props = {});
|
|
return h("div", { ...props, class: `carousel ${props.class ?? ''}` }, children);
|
|
};
|
|
|
|
export const CarouselItem = (props, children) => {
|
|
children === undefined && (children = props, props = {});
|
|
return h("div", { ...props, class: `carousel-item ${props.class ?? ''}` }, children);
|
|
}; |