Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,16 @@ export default function ThemeSignInPage() {
return (
// preview-start
<AppProvider theme={THEME}>
<SignInPage signIn={signIn} providers={providers} />
<SignInPage
signIn={signIn}
providers={providers}
sx={{
'& form > .MuiStack-root': {
marginTop: '2rem',
rowGap: '0.5rem',
},
}}
/>
</AppProvider>
// preview-end
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,16 @@ export default function ThemeSignInPage() {
return (
// preview-start
<AppProvider theme={THEME}>
<SignInPage signIn={signIn} providers={providers} />
<SignInPage
signIn={signIn}
providers={providers}
sx={{
'& form > .MuiStack-root': {
marginTop: '2rem',
rowGap: '0.5rem',
},
}}
/>
</AppProvider>
// preview-end
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,14 @@ const THEME = createTheme({
// ...

<AppProvider theme={THEME}>
<SignInPage signIn={signIn} providers={providers} />
<SignInPage
signIn={signIn}
providers={providers}
sx={{
'& form > .MuiStack-root': {
marginTop: '2rem',
rowGap: '0.5rem',
},
}}
/>
</AppProvider>
4 changes: 2 additions & 2 deletions docs/data/toolpad/core/components/sign-in-page/customTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,9 @@ export const inputsCustomizations = {
MuiInputLabel: {
styleOverrides: {
root: {
transform: 'translate(4px, -11px) scale(0.75)',
transform: 'translate(4px, -16px) scale(0.75)',
[`&.${outlinedInputClasses.focused}`]: {
transform: 'translate(4px, -12px) scale(0.75)',
transform: 'translate(4px, -17px) scale(0.75)',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,9 @@ export const inputsCustomizations: Components<Theme> = {
MuiInputLabel: {
styleOverrides: {
root: {
transform: 'translate(4px, -11px) scale(0.75)',
transform: 'translate(4px, -16px) scale(0.75)',
[`&.${outlinedInputClasses.focused}`]: {
transform: 'translate(4px, -12px) scale(0.75)',
transform: 'translate(4px, -17px) scale(0.75)',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The `SignInPage` component is a quick way to generate a ready-to-use authenticat

The `SignInPage` component can be set up with an OAuth provider by passing in a list of providers in the `providers` prop, along with a `signIn` function that accepts the `provider` as a parameter.

{{"demo": "OAuthSignInPage.js", "iframe": true, "height": 500}}
{{"demo": "OAuthSignInPage.js", "iframe": true, "height": 600}}

:::info

Expand Down Expand Up @@ -85,7 +85,7 @@ The Credentials provider is not the most secure way to authenticate users. It's

To render a username password form, pass in a provider with `credentials` as the `id` property. The `signIn` function accepts a `formData` parameter in this case.

{{"demo": "CredentialsSignInPage.js", "iframe": true, "height": 500}}
{{"demo": "CredentialsSignInPage.js", "iframe": true, "height": 600}}

### Alerts

Expand Down Expand Up @@ -245,7 +245,7 @@ Make sure to pass `email` and `password` as the `name` attribute on custom email

You can use the `slotProps` prop to pass props to the underlying components of each slot:

{{"demo": "SlotPropsSignIn.js", "iframe": true, "height": 540 }}
{{"demo": "SlotPropsSignIn.js", "iframe": true, "height": 600 }}

### 🚧 Layouts

Expand Down