UNPKG

braid-design-system

Version:
28 lines (27 loc) 666 B
"use strict"; const jsxRuntime = require("react/jsx-runtime"); const lib_playroom_playroomState_cjs = require("../../playroom/playroomState.cjs"); const lib_components_Textarea_Textarea_cjs = require("./Textarea.cjs"); const Textarea = ({ stateName, value, onChange, ...restProps }) => { const [state, handleChange] = lib_playroom_playroomState_cjs.useFallbackState( stateName, value, onChange, "" ); return /* @__PURE__ */ jsxRuntime.jsx( lib_components_Textarea_Textarea_cjs.Textarea, { value: state, onChange: handleChange, autoComplete: "off", ...restProps } ); }; exports.Textarea = Textarea;