CLASSROOMIO-T-127: Add 4 themes configurations into the app Clean up Co-authored-by: Rotimi Best <rotimiibitoyeemma@gmail.com> Merge-request: CLASSROOMIO-MR-51 Merged-by: Best Admin <best@digdippa.com>
19 lines
648 B
Svelte
19 lines
648 B
Svelte
<script>
|
|
import CloseIcon from 'carbon-icons-svelte/lib/Close.svelte';
|
|
import IconButton from '$lib/components/IconButton/index.svelte';
|
|
|
|
export let onClick;
|
|
export let contained;
|
|
export let color = 'text-primary-700 bg-primary-200 dark:bg-gray-500';
|
|
export let size = 'large';
|
|
</script>
|
|
|
|
<IconButton {onClick} {color} {contained} {size}>
|
|
{#if size === 'large'}
|
|
<CloseIcon size={24} class="carbon-icon dark:text-white" title="Delete" />
|
|
{:else}
|
|
<CloseIcon size={20} class="carbon-icon dark:text-white" title="Delete" />
|
|
{/if}
|
|
</IconButton>
|
|
<!-- color="text-primary-700 bg-primary-200 dark:bg-gray-200 dark:text-black" -->
|