@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
66 lines (63 loc) • 1.3 kB
JavaScript
"use strict";
import { defineSlotRecipe } from '../../styled-system/config.js';
import { carouselAnatomy } from '@ark-ui/react/carousel';
const carouselSlotRecipe = defineSlotRecipe({
className: "carousel",
slots: carouselAnatomy.keys(),
base: {
root: {
position: "relative",
display: "flex",
gap: "2",
_horizontal: {
flexDirection: "column"
},
_vertical: {
flexDirection: "row"
}
},
item: {
_horizontal: {
width: "100%"
},
_vertical: {
height: "100%"
}
},
control: {
display: "flex",
alignItems: "center",
_horizontal: {
flexDirection: "row",
width: "100%"
},
_vertical: {
flexDirection: "column",
height: "100%"
}
},
indicatorGroup: {
display: "flex",
justifyContent: "center",
gap: "3",
_horizontal: {
flexDirection: "row"
},
_vertical: {
flexDirection: "column"
}
},
indicator: {
width: "2.5",
height: "2.5",
borderRadius: "full",
bg: "colorPalette.subtle",
cursor: "button",
_current: {
bg: "colorPalette.solid"
}
}
},
defaultVariants: {}
});
export { carouselSlotRecipe };