UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

101 lines (97 loc) 1.94 kB
"use strict"; 'use strict'; var anatomy = require('../../anatomy.cjs'); var config = require('../../styled-system/config.cjs'); const breadcrumbSlotRecipe = config.defineSlotRecipe({ className: "chakra-breadcrumb", slots: anatomy.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" } }); exports.breadcrumbSlotRecipe = breadcrumbSlotRecipe;