import { jsx as _jsx } from "react/jsx-runtime";
import React from "react";
import { TextField, } from "../fragments/text-field/index.js";
import { TextareaField, } from "../fragments/textarea-field/index.js";
export const StringField = React.forwardRef(({ autoExpand, multiline, ...props }, ref) => {
    if (autoExpand || multiline) {
        // only textarea supports autoExpand and multiline
        return (_jsx(TextareaField, { autoExpand: autoExpand, multiline: multiline, ...props, ref: ref }));
    }
    return (_jsx(TextField, { ...props, ref: ref }));
});
StringField.displayName = "StringField";
//# sourceMappingURL=string-field.js.map