@hitachivantara/uikit-react-core
Version:
UI Kit Core React components.
19 lines (18 loc) • 756 B
JavaScript
import { getContainerStyle, useClasses } from "./SimpleGrid.styles.js";
import { useDefaultProps } from "@hitachivantara/uikit-react-utils";
import { jsx } from "react/jsx-runtime";
//#region src/SimpleGrid/SimpleGrid.tsx
/**
* SimpleGrid is a lightweight, responsive grid for evenly spaced items across a fixed number of columns.
*/
var HvSimpleGrid = (props) => {
const { children, breakpoints, spacing, cols, className, classes: classesProp, ...others } = useDefaultProps("HvSimpleGrid", props);
const { classes, cx, css } = useClasses(classesProp);
return /* @__PURE__ */ jsx("div", {
className: cx(css(getContainerStyle(breakpoints, spacing, cols)), classes.root, className),
...others,
children
});
};
//#endregion
export { HvSimpleGrid };