MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
724 stars 557 forks source link

type: 'prompt' snap_dialog for password masking #2488

Closed talken-devteam closed 3 months ago

talken-devteam commented 3 months ago

Hi I'm developing snap-simple-keyring wallet. OnKeyringRequestHandler, const password = await snap.request({ method: 'snap_dialog', params: { type: 'prompt', content: panel([ heading('mpc password?'), text('Please input mpc password'), ]), placeholder: 'password...', }, }); image Is there a way to mask the input like inputType:"password"

Montoya commented 3 months ago

Hi, we are working on a customizable dialog that will provide more control over forms like these. You will be able to use JSX UI components with props, like <Input type="password">. We will have more information about this in a couple weeks.