@stratakit/react
Version:
A React component library for StrataKit
36 lines (35 loc) • 795 B
JavaScript
import { jsx } from "react/jsx-runtime";
import * as React from "react";
import { Field, TextBox } from "@stratakit/bricks";
import { useCompatProps } from "./~utils.js";
const Input = React.forwardRef((props, forwardedRef) => {
const {
id,
htmlSize,
// biome-ignore-start lint/correctness/noUnusedVariables: NOT IMPLEMENTED
children,
size,
status,
// biome-ignore-end lint/correctness/noUnusedVariables: NOT IMPLEMENTED
type: inputType,
...rest
} = useCompatProps(props);
return /* @__PURE__ */ jsx(
Field.Control,
{
id,
render: /* @__PURE__ */ jsx(
TextBox.Input,
{
...rest,
type: inputType,
size: htmlSize
}
),
ref: forwardedRef
}
);
});
export {
Input
};