@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
30 lines (27 loc) • 581 B
JavaScript
"use strict";
import { defineRecipe } from '../../styled-system/config.js';
const iconRecipe = defineRecipe({
className: "chakra-icon",
base: {
display: "inline-block",
lineHeight: "1em",
flexShrink: "0",
color: "currentcolor",
verticalAlign: "middle"
},
variants: {
size: {
inherit: {},
xs: { boxSize: "3" },
sm: { boxSize: "4" },
md: { boxSize: "5" },
lg: { boxSize: "6" },
xl: { boxSize: "7" },
"2xl": { boxSize: "8" }
}
},
defaultVariants: {
size: "inherit"
}
});
export { iconRecipe };