Select a file in UXP

How do I make a file selector in a UXP panel? The plugin I want to develop needs the user to select a .txt file and then read from it. Not really much else to say, just looking for a UXP html element for this. If it exists, sp- would be preferable 'cause I’m not one for CSS.

Check docs on UXP Persistent file storage or direct File system access. For the latter I believe you’ll need to list some permissions in manifest, but not sure. Try searching the forum - here are plenty of topics about this with examples