Numbers values are treated as pixels
<ssr-carousel :slides-per-page="2" :gutter="40">
<slide :index="1"></slide>
<slide :index="2"></slide>
<slide :index="3"></slide>
</ssr-carousel>
Any CSS value is valid
<ssr-carousel :slides-per-page="2" gutter="3%">
<slide :index="1"></slide>
<slide :index="2"></slide>
<slide :index="3"></slide>
</ssr-carousel>
You can even use CSS custom properties
<template>
<ssr-carousel :slides-per-page="2" gutter="var(--fluid-gutter)">
<slide :index="1"></slide>
<slide :index="2"></slide>
<slide :index="3"></slide>
</ssr-carousel>
</template>
<style lang="scss">
body {
--fluid-gutter: 40px, 20px;
}
</style>
Gutters are responsive
<ssr-carousel
:slides-per-page="3"
:gutter="40"
:responsive="[
{
maxWidth: 1024,
slidesPerPage: 2,
gutter: 20
}
]"
>
<slide :index="1"></slide>
<slide :index="2"></slide>
<slide :index="3"></slide>
<slide :index="4"></slide>
<slide :index="5"></slide>
</ssr-carousel>