Fluent UI React-Northstar form #15947
|
Hi, I was hoping that someone could point me to some documentation/demo on how to use a Form in Fluent UI React-Northstar. Also, I am currently using a MaskedTextField from office-ui-fabric-react and re-styling it to try and fit the fluent ui look so if there is a way to ad a mask to a Fluent UI input that would be great. I am creating this app as a Microsoft Teams Tab, so I would like to be able to theme the components in the form. Any help would be greatly appreciated. |
Replies: 1 comment
|
Hello WynandCoetzerIT, you'll want to have listeners on your form elements and save their value changes in your state. Then, you'll capture the form submission and read the form state at that time. 🎉 SolutionHere's a working codesandbox with the setup you described.
Other Resources
You also might be interested in React's docs on HTML forms for idiomatic React patterns. |

Hello WynandCoetzerIT, you'll want to have listeners on your form elements and save their value changes in your state. Then, you'll capture the form submission and read the form state at that time.
🎉 Solution
Here's a working codesandbox with the setup you described.
Other Resources
You also might be interested in React's docs on HTML forms for idiomatic React patterns.