UserPill
component to easily embed in your application. Users can login or connect their wallet from the user pill. Once authenticated, users can interact with the pill to quickly view their account information and use their wallets.@privy-io/react-auth
package:PrivyProvider
:action
, label
, and/or size
props on the component.Prop | Type | Description |
---|---|---|
See below | The action users take from the user pill. | |
The size (in pixels) of the pill button. | ||
UserPill
component. This prop is an object with a type
and options
field.You can set the type
to:'connectWallet'
to guide the user to connect their wallet. If type: 'connectWallet'
is set, you may set options: {suggestedAddress?: string}
to suggest a specific address for the user to connect.'login'
to guide the user to login to your application with any of your configured login methods. If type: 'login'
is set, you may set options
to an object containing loginMethods
and/or prefill
. The loginMethods
field contains an array of the login methods to use in the pill and the prefill
field contains an email address or phone number to prefill into the Privy login modal.