@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
12 lines (11 loc) • 715 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { FormattedMessage, useIntl } from 'react-intl';
import { TextField } from '../formio';
import { LABELS } from './messages';
const Placeholder = () => {
const intl = useIntl();
const tooltip = intl.formatMessage({ id: "TtqZa0", defaultMessage: [{ type: 0, value: "The placeholder text that will appear when this field is empty." }] });
const placeholder = intl.formatMessage({ id: "CRN74c", defaultMessage: [{ type: 0, value: "Placeholder" }] });
return (_jsx(TextField, { name: "placeholder", label: _jsx(FormattedMessage, Object.assign({}, LABELS.placeholder)), tooltip: tooltip, placeholder: placeholder }));
};
export default Placeholder;