@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
41 lines (37 loc) • 850 B
JavaScript
"use strict";
'use strict';
var config = require('../../styled-system/config.cjs');
const linkRecipe = config.defineRecipe({
className: "chakra-link",
base: {
display: "inline-flex",
alignItems: "center",
outline: "none",
gap: "1.5",
cursor: "pointer",
borderRadius: "l1",
focusRing: "outside"
},
variants: {
variant: {
underline: {
color: "colorPalette.fg",
textDecoration: "underline",
textUnderlineOffset: "3px",
textDecorationColor: "currentColor/20"
},
plain: {
color: "colorPalette.fg",
_hover: {
textDecoration: "underline",
textUnderlineOffset: "3px",
textDecorationColor: "currentColor/20"
}
}
}
},
defaultVariants: {
variant: "plain"
}
});
exports.linkRecipe = linkRecipe;