mirror of
https://github.com/TECHNOFAB11/svelte-oidc.git
synced 2025-12-12 16:10:05 +01:00
Update LogonButton to all customizable style designs
Added classes and styles attributes that allow the button to be styled by the developer.
This commit is contained in:
parent
0015f22752
commit
a703572dc2
1 changed files with 3 additions and 1 deletions
|
|
@ -9,6 +9,8 @@
|
|||
const oidcPromise = getContext(OIDC_CONTEXT_CLIENT_PROMISE)
|
||||
export let callback_url = getContext(OIDC_CONTEXT_REDIRECT_URI)
|
||||
export let preserveRoute
|
||||
export let classes = ''
|
||||
export let styles = ''
|
||||
</script>
|
||||
|
||||
<button class="btn" on:click|preventDefault='{() => login(oidcPromise, preserveRoute, callback_url) }'><slot></slot></button>
|
||||
<button class="btn {classes}" style="{styles}" on:click|preventDefault='{() => login(oidcPromise, preserveRoute, callback_url) }'><slot></slot></button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue