UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

99 lines (96 loc) 1.91 kB
"use strict"; import { breadcrumbAnatomy } from '../../anatomy.js'; import { defineSlotRecipe } from '../../styled-system/config.js'; const breadcrumbSlotRecipe = defineSlotRecipe({ className: "chakra-breadcrumb", slots: breadcrumbAnatomy.keys(), base: { list: { display: "flex", alignItems: "center", wordBreak: "break-word", color: "fg.muted", listStyle: "none" }, link: { outline: "0", textDecoration: "none", borderRadius: "l1", focusRing: "outside", display: "inline-flex", alignItems: "center", gap: "2" }, item: { display: "inline-flex", alignItems: "center" }, separator: { color: "fg.muted", opacity: "0.8", _icon: { boxSize: "1em" }, _rtl: { rotate: "180deg" } }, ellipsis: { display: "inline-flex", alignItems: "center", justifyContent: "center", _icon: { boxSize: "1em" } } }, variants: { variant: { underline: { link: { color: "colorPalette.fg", textDecoration: "underline", textUnderlineOffset: "0.2em", textDecorationColor: "colorPalette.muted" }, currentLink: { color: "colorPalette.fg" } }, plain: { link: { color: "fg.muted", _hover: { color: "fg" } }, currentLink: { color: "fg" } } }, size: { sm: { list: { gap: "1", textStyle: "xs" } }, md: { list: { gap: "1.5", textStyle: "sm" } }, lg: { list: { gap: "2", textStyle: "md" } } } }, defaultVariants: { variant: "plain", size: "md" } }); export { breadcrumbSlotRecipe };