UNPKG

@stratakit/react

Version:

A React component library for StrataKit

19 lines (18 loc) 491 B
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 } ); }); export { InputGrid };