UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

15 lines (14 loc) 681 B
import { jsx as _jsx } from "react/jsx-runtime"; import { FormattedMessage } from 'react-intl'; import { TemplatingHint } from '../../components/builder'; import { TextField } from '../formio'; import { LABELS } from './messages'; /* * The label specifies the label for a form field visible for end users filling out the * field. * * Additionally, it typically serves as input/starting value to derive the component key * and can typically be translated by the form designers. */ const Label = () => (_jsx(TextField, { name: "label", label: _jsx(FormattedMessage, Object.assign({}, LABELS.label)), tooltip: _jsx(TemplatingHint, {}), required: true })); export default Label;