shelving
Version:
Toolkit for using data in JavaScript.
9 lines (8 loc) • 464 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { getSpacingClass } from "../style/Spacing.js";
import { getWidthClass } from "../style/Width.js";
import { getClass, getModuleClass } from "../util/css.js";
import styles from "./Image.module.css";
export function Image({ src, alt, ...variants }) {
return (_jsx("img", { src: src, alt: alt, className: getClass(getModuleClass(styles, "image"), getSpacingClass(variants), getWidthClass(variants)) }));
}