braid-design-system
Version:
Themeable design system for the SEEK Group
29 lines (28 loc) • 531 B
JavaScript
import { jsx } from "react/jsx-runtime";
import { useFallbackState } from "../../playroom/playroomState.mjs";
import { Textarea as Textarea$1 } from "./Textarea.mjs";
const Textarea = ({
stateName,
value,
onChange,
...restProps
}) => {
const [state, handleChange] = useFallbackState(
stateName,
value,
onChange,
""
);
return /* @__PURE__ */ jsx(
Textarea$1,
{
value: state,
onChange: handleChange,
autoComplete: "off",
...restProps
}
);
};
export {
Textarea
};