2025-11-01 15:49:29 +01:00
|
|
|
<script lang="ts">
|
|
|
|
|
import XIcon from '@lucide/svelte/icons/x';
|
|
|
|
|
import IconButton, { type Props as IconButtonProps } from '$lib/components/IconButton/index.svelte';
|
2023-08-02 19:35:27 +01:00
|
|
|
|
2025-11-01 15:49:29 +01:00
|
|
|
interface Props {
|
|
|
|
|
onClick?: IconButtonProps['onClick'];
|
|
|
|
|
contained?: boolean;
|
|
|
|
|
color?: string;
|
|
|
|
|
size?: IconButtonProps['size'];
|
|
|
|
|
toolTipProps?: IconButtonProps['toolTipProps'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
onClick = () => {},
|
|
|
|
|
contained = false,
|
|
|
|
|
color = 'text-primary-700 bg-primary-200 dark:bg-neutral-500',
|
|
|
|
|
size = 'small'
|
|
|
|
|
}: Props = $props();
|
2023-08-02 19:35:27 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<IconButton {onClick} {color} {contained} {size}>
|
2025-11-01 15:49:29 +01:00
|
|
|
<XIcon size={size === 'large' ? 24 : 16} class="carbon-icon dark:text-black" />
|
2023-08-02 19:35:27 +01:00
|
|
|
</IconButton>
|