@stratakit/react
Version:
A React component library for StrataKit
20 lines (19 loc) • 533 B
JavaScript
import { jsx } from "react/jsx-runtime";
import * as React from "react";
import { Field as SkField } from "@stratakit/bricks";
import { useCompatProps } from "./~utils.js";
const InputGrid = React.forwardRef((props, forwardedRef) => {
const { labelPlacement, ...rest } = useCompatProps(props);
return /* @__PURE__ */ jsx(
SkField.Root,
{
...rest,
layout: labelPlacement === "inline" ? "inline" : void 0,
ref: forwardedRef
}
);
});
DEV: InputGrid.displayName = "InputGrid";
export {
InputGrid
};