UNPKG

braid-design-system

Version:
29 lines (28 loc) 531 B
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 };