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 Max = () => { const intl = useIntl(); const tooltip = intl.formatMessage({ id: "/iusiS", defaultMessage: [{ type: 0, value: "The maximum value this field can have before the form can be submitted." }] }); const placeholder = intl.formatMessage({ id: "3RUomu", defaultMessage: [{ type: 0, value: "Maximum value" }] }); return (_jsx(NumberField, { name: "validate.max", label: _jsx(FormattedMessage, { id: '3+WIVB', defaultMessage: [{ type: 0, value: "Maximum value" }] }), placeholder: placeholder, tooltip: tooltip })); }; export default Max;