@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
24 lines (21 loc) • 591 B
JavaScript
import { defineSlotRecipe } from '../../styled-system/config.js';
import { collapsibleAnatomy } from '@ark-ui/react/collapsible';
const collapsibleSlotRecipe = defineSlotRecipe({
slots: collapsibleAnatomy.keys(),
className: "chakra-collapsible",
base: {
content: {
overflow: "hidden",
_open: {
animationName: "expand-height, fade-in",
animationDuration: "moderate"
},
_closed: {
animationName: "collapse-height, fade-out",
animationDuration: "moderate"
}
}
}
});
export { collapsibleSlotRecipe };
;