import * as React from 'react'; import { MaskedTextField, Stack } from '@fluentui/react'; const maskFormat: { [key: string]: RegExp } = { '*': /[a-zA-Z0-9_]/, }; const stackTokens = { maxWidth: 300 }; export const TextFieldMaskedExample: React.FunctionComponent = () => { return (

The mask has been modified here to allow "_"

); };