UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

14 lines (13 loc) 990 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const react_intl_1 = require("react-intl"); const formio_1 = require("../formio"); const Suffix = () => { const intl = (0, react_intl_1.useIntl)(); const tooltip = intl.formatMessage({ id: "czUDSQ", defaultMessage: [{ type: 0, value: "A short indicator that can provide more context for the expected field value. The <sup> and <sub> HTML tags are supported." }] }); return ((0, jsx_runtime_1.jsx)(formio_1.TextField, { name: "suffix", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'cAio/J', defaultMessage: [{ type: 0, value: "A short indicator to discribe the field value, e.g. " }, { type: 8, value: "example", children: [] }, { type: 0, value: "." }], values: { example: () => (0, jsx_runtime_1.jsx)("code", { children: "m<sup>3</sup>" }), } }), tooltip: tooltip })); }; exports.default = Suffix;