UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

32 lines (28 loc) 814 B
"use strict"; 'use strict'; var config = require('../../styled-system/config.cjs'); var collapsible = require('@ark-ui/react/collapsible'); const collapsibleSlotRecipe = config.defineSlotRecipe({ slots: collapsible.collapsibleAnatomy.keys(), className: "chakra-collapsible", base: { content: { overflow: "hidden", _open: { animationName: "expand-height, fade-in", animationDuration: "moderate", "&[data-has-collapsed-size]": { animationName: "expand-height" } }, _closed: { animationName: "collapse-height, fade-out", animationDuration: "moderate", "&[data-has-collapsed-size]": { animationName: "collapse-height" } } } } }); exports.collapsibleSlotRecipe = collapsibleSlotRecipe;