@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
84 lines (80 loc) • 1.61 kB
JavaScript
"use strict";
'use strict';
var anatomy = require('../../anatomy.cjs');
var config = require('../../styled-system/config.cjs');
const blockquoteSlotRecipe = config.defineSlotRecipe({
className: "chakra-blockquote",
slots: anatomy.blockquoteAnatomy.keys(),
base: {
root: {
position: "relative",
display: "flex",
flexDirection: "column",
gap: "2"
},
caption: {
textStyle: "sm",
color: "fg.muted"
},
icon: {
boxSize: "5"
}
},
variants: {
justify: {
start: {
root: {
alignItems: "flex-start",
textAlign: "start"
}
},
center: {
root: {
alignItems: "center",
textAlign: "center"
}
},
end: {
root: {
alignItems: "flex-end",
textAlign: "end"
}
}
},
variant: {
subtle: {
root: {
paddingX: "5",
borderStartWidth: "4px",
borderStartColor: "colorPalette.muted"
},
icon: {
color: "colorPalette.fg"
}
},
solid: {
root: {
paddingX: "5",
borderStartWidth: "4px",
borderStartColor: "colorPalette.solid"
},
icon: {
color: "colorPalette.solid"
}
},
plain: {
root: {
paddingX: "5"
},
icon: {
color: "colorPalette.solid"
}
}
}
},
defaultVariants: {
variant: "subtle",
justify: "start"
}
});
exports.blockquoteSlotRecipe = blockquoteSlotRecipe;