Home > Net >  How do I disable Submit button in Amplify Default Auth UI?
How do I disable Submit button in Amplify Default Auth UI?

Time:11-12

I want to hide the Submit Button in Amplify Default UI, but not sure how to achieve it. Didn't observe any documentation at Amplify.

Here is my code:

function App() {
  return (
    <AmplifyAuthenticator>
        <AmplifyFormSection  slot="sign-in">
        <AmplifyOauthButton />
        </AmplifyFormSection>
        <div className="App">
        <Users></Users>
      </div>
    </AmplifyAuthenticator>
  );
}

Screenshot:

enter image description here

CodePudding user response:

You can place the AmplifyOauthButton as the slot, just like below:

function App() {
  return (
    <AmplifyAuthenticator>
      <AmplifyOauthButton slot="sign-in" />
    </AmplifyAuthenticator>
  );
}
  • Related