app/pb_kits/playbook/pb_text_input/docs/_text_input_mask_rails

The mask prop lets you style your inputs while maintaining the value that the user typed in.

It uses a hidden input field to submit the unformatted value as it will have the proper name attribute. It will also copy the id field with a "#{your-id-sanitized}"