mirror of
https://github.com/TECHNOFAB11/svelte-oidc.git
synced 2025-12-11 23:50:06 +01:00
Update LogoutButton 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
a703572dc2
commit
0b85df2619
1 changed files with 3 additions and 1 deletions
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
const oidcPromise = getContext(OIDC_CONTEXT_CLIENT_PROMISE)
|
||||
export let logout_url = getContext(OIDC_CONTEXT_POST_LOGOUT_REDIRECT_URI)
|
||||
export let classes = ''
|
||||
export let styles = ''
|
||||
</script>
|
||||
|
||||
<button class="btn" on:click|preventDefault='{() => logout(oidcPromise, logout_url) }'><slot></slot></button>
|
||||
<button class="btn {classes}" style="{styles} on:click|preventDefault='{() => logout(oidcPromise, logout_url) }'><slot></slot></button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue