Extend shared UI component customization
Lint / Lint (Node/Svelte) (push) Successful in 23s
Lint / Lint (Go) (push) Successful in 16s
Lint / Lint (Python) (push) Successful in 9s
Tests / Test (Node/Svelte) (push) Successful in 14s
Tests / Test (Go) (push) Successful in 17s
Tests / Test (Python) (push) Successful in 9s
Lint / Lint (Node/Svelte) (push) Successful in 23s
Lint / Lint (Go) (push) Successful in 16s
Lint / Lint (Python) (push) Successful in 9s
Tests / Test (Node/Svelte) (push) Successful in 14s
Tests / Test (Go) (push) Successful in 17s
Tests / Test (Python) (push) Successful in 9s
This commit is contained in:
1 parent
c95865dbe2
commit
2f57554154
6 files changed
+41
-3
No files matched your search
@@ -1,9 +1,11 @@
|
||||
<script lang="ts">
|
||||
import type { Snippet } from 'svelte';
|
||||
import type { AuthLoginInput, AuthSetupInput } from '../types';
|
||||
import Button from './Button.svelte';
|
||||
|
||||
let {
|
||||
brand = 'Application',
|
||||
children,
|
||||
error = '',
|
||||
loading = false,
|
||||
onLogin,
|
||||
@@ -12,6 +14,7 @@
|
||||
tagline = ''
|
||||
}: {
|
||||
brand?: string;
|
||||
children?: Snippet;
|
||||
error?: string;
|
||||
loading?: boolean;
|
||||
onLogin?: (input: AuthLoginInput) => void | Promise<void>;
|
||||
@@ -142,5 +145,9 @@
|
||||
{loading || submitting ? 'Please wait…' : setupRequired ? 'Create account' : 'Log in'}
|
||||
</Button>
|
||||
</form>
|
||||
|
||||
{#if children}
|
||||
<div class="sc-auth-extra">{@render children()}</div>
|
||||
{/if}
|
||||
</section>
|
||||
</div>
|
||||
Reference in new issue
Block a user