UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

21 lines (18 loc) 926 B
import { createMemoStyles } from '../../theme/create-memo-styles.js'; import { getSizeValue } from '../../theme/utils/get-size-value/get-size-value.js'; var useStyles = createMemoStyles({ wrapper: ({ theme, spacing, variant }) => ({ display: "flex", flexWrap: "wrap", flexDirection: variant === "vertical" ? "column" : "row", margin: getSizeValue({ sizes: theme.spacing, size: spacing }) / 2 * -1, marginTop: getSizeValue({ sizes: theme.spacing, size: spacing }) / 4 * (variant === "vertical" ? 1 : -1), "& [data-mantine-radio]": { margin: getSizeValue({ sizes: theme.spacing, size: spacing }) / 2, marginTop: variant === "vertical" && getSizeValue({ sizes: theme.spacing, size: spacing }) / 4, marginBottom: variant === "vertical" && getSizeValue({ sizes: theme.spacing, size: spacing }) / 4 } }) }); export default useStyles; //# sourceMappingURL=RadioGroup.styles.js.map