UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

82 lines (79 loc) 1.58 kB
"use strict"; import { blockquoteAnatomy } from '../../anatomy.js'; import { defineSlotRecipe } from '../../styled-system/config.js'; const blockquoteSlotRecipe = defineSlotRecipe({ className: "chakra-blockquote", slots: 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" } }); export { blockquoteSlotRecipe };