CredentialInput
Description#
This component renders a dropdown used to manage credentials for given app.
Import#
import { CredentialInput } from "@rollout/connect-react";
Usage#
Here's a basic usage example:
<CredentialInputappKey="gmail"onCredentialSelected={(selectedCredentialKey) => console.log("Credential selected")}/>
Props#
prop | type | required | Description |
---|---|---|---|
appKey | string | true | appKey of the connector |
selectedCredentialKey | string | false | credentialKey of the credential to be pre-selected |
onCredentialSelected | `(selectedCredentialKey: string | undefined) => void` | true |
singleCredentialOnly | boolean | false | Pass true to only allow adding a single credential |
isDisabled | boolean | false | Pass true to render the field in a disabled state |