UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

48 lines (45 loc) 855 B
"use strict"; import { statusAnatomy } from '../../anatomy.js'; import { defineSlotRecipe } from '../../styled-system/config.js'; const statusSlotRecipe = defineSlotRecipe({ className: "chakra-status", slots: statusAnatomy.keys(), base: { root: { display: "inline-flex", alignItems: "center", gap: "2" }, indicator: { width: "0.64em", height: "0.64em", flexShrink: 0, borderRadius: "full", forcedColorAdjust: "none", bg: "colorPalette.solid" } }, variants: { size: { sm: { root: { textStyle: "xs" } }, md: { root: { textStyle: "sm" } }, lg: { root: { textStyle: "md" } } } }, defaultVariants: { size: "md" } }); export { statusSlotRecipe };