UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

11 lines (10 loc) 714 B
import { jsx as _jsx } from "react/jsx-runtime"; import { FormattedMessage, useIntl } from 'react-intl'; import { NumberField } from '../../formio'; const Min = () => { const intl = useIntl(); const tooltip = intl.formatMessage({ id: "2/2h2C", defaultMessage: [{ type: 0, value: "The minimum value this field can have before the form can be submitted." }] }); const placeholder = intl.formatMessage({ id: "BGZD6J", defaultMessage: [{ type: 0, value: "Minimum value" }] }); return (_jsx(NumberField, { name: "validate.min", label: _jsx(FormattedMessage, { id: 'pDJBaK', defaultMessage: [{ type: 0, value: "Minimum value" }] }), placeholder: placeholder, tooltip: tooltip })); }; export default Min;