src/applications/simple-forms/mock-simple-forms-patterns/pages/mockTextEmailPhone.js
import {
titleUI,
emailUI,
emailSchema,
phoneSchema,
phoneUI,
} from 'platform/forms-system/src/js/web-component-patterns';
/** @type {PageSchema} */
export default {
uiSchema: {
...titleUI('Web component v3 email and phone'),
wcv3TextEmailNew: emailUI({
description:
'By providing an email address, I agree to receive electronic correspondence from VA regarding my application',
}),
wcv3TextPhoneNew: phoneUI(),
},
schema: {
type: 'object',
properties: {
wcv3TextEmailNew: emailSchema,
wcv3TextPhoneNew: phoneSchema,
},
required: ['wcv3TextEmailNew'],
},
};