@stratakit/react
Version:
A React component library for StrataKit
20 lines (19 loc) • 617 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 Label = React.forwardRef((props, forwardedRef) => {
const {
// biome-ignore-start lint/correctness/noUnusedVariables: NOT IMPLEMENTED
displayStyle,
disabled,
required,
// biome-ignore-end lint/correctness/noUnusedVariables: NOT IMPLEMENTED
...rest
} = useCompatProps(props);
return /* @__PURE__ */ jsx(SkField.Label, { ...rest, ref: forwardedRef });
});
DEV: Label.displayName = "Label";
export {
Label
};