2023-08-02 19:35:27 +01:00
|
|
|
<script>
|
|
|
|
|
import CloseIcon from 'carbon-icons-svelte/lib/Close.svelte';
|
|
|
|
|
import IconButton from '$lib/components/IconButton/index.svelte';
|
|
|
|
|
|
2023-10-08 15:34:37 +01:00
|
|
|
export let onClick = () => {};
|
|
|
|
|
export let contained = false;
|
2023-09-24 11:28:37 +01:00
|
|
|
export let color = 'text-primary-700 bg-primary-200 dark:bg-neutral-500';
|
2023-08-24 18:31:52 +01:00
|
|
|
export let size = 'small';
|
2023-08-02 19:35:27 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<IconButton {onClick} {color} {contained} {size}>
|
|
|
|
|
{#if size === 'large'}
|
2023-08-04 12:41:12 +01:00
|
|
|
<CloseIcon size={24} class="carbon-icon dark:text-white" title="Delete" />
|
2023-08-02 19:35:27 +01:00
|
|
|
{:else}
|
2023-08-07 19:44:26 +00:00
|
|
|
<CloseIcon size={20} class="carbon-icon dark:text-white" title="Delete" />
|
2023-08-02 19:35:27 +01:00
|
|
|
{/if}
|
|
|
|
|
</IconButton>
|
2023-08-20 19:08:48 +00:00
|
|
|
<!-- color="text-primary-700 bg-primary-200 dark:bg-gray-200 dark:text-black" -->
|