Skip to content

Commit

Permalink
feat: add permanent banner prop
Browse files Browse the repository at this point in the history
  • Loading branch information
madkarmaa committed Aug 25, 2024
1 parent 8765763 commit 763185f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/components/Banner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import Button from './Button.svelte';
export let level: 'info' | 'warning' | 'caution' = 'info';
export let permanent: boolean = false;
const dispatch = createEventDispatcher();
let closed: boolean = false;
Expand All @@ -13,7 +14,7 @@
};
</script>

<div class="banner-container" class:closed>
<div class="banner-container" class:closed class:permanent>
<div class="banner {level}">
<div class="banner-text">
<img src="../icons/{level}.svg" alt="{level}-icon" />
Expand Down

0 comments on commit 763185f

Please sign in to comment.