UNPKG

slanted-gamedev-toolz

Version:

A slanted mix of tools for your brilliant ideas in game design.

20 lines (19 loc) 965 B
import { jsx as _jsx } from "react/jsx-runtime"; import { getLocalizedTextRaw } from "../LocalizationSelect/useLocalization"; import { importExportSaveLocalization } from "./constants/ImportExportLocalization"; export const TextAreaSaveString = ({ saveString, handleChangeSaveString, defaultText, }) => { return (_jsx("div", { style: { width: "100%", }, children: _jsx("textarea", { id: "myInput", value: saveString, // biome-ignore lint/a11y/noAutofocus: <explanation> autoFocus: true, onChange: handleChangeSaveString, placeholder: defaultText || getLocalizedTextRaw(importExportSaveLocalization.saveBoxPlaceholder), style: { boxSizing: "border-box", height: "50px", width: "100%", overflowY: "auto", backgroundColor: "black", color: "white", fontSize: "16px", } }) })); };