feat: replace clsx with cn util

This commit is contained in:
Ilia Mashkov
2026-04-23 09:48:32 +03:00
parent 1332b45bc1
commit a68f754b1c
34 changed files with 91 additions and 92 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
A single key:value pair in Space Mono. Optional trailing divider.
-->
<script lang="ts">
import { cn } from '$shared/lib';
import { Label } from '$shared/ui';
import clsx from 'clsx';
import type { ComponentProps } from 'svelte';
interface Props extends Pick<ComponentProps<typeof Label>, 'variant'> {
@@ -36,7 +36,7 @@ let {
}: Props = $props();
</script>
<div class={clsx('flex items-center gap-1', className)}>
<div class={cn('flex items-center gap-1', className)}>
<Label variant="muted" size="xs">{label}:</Label>
<Label {variant} size="xs" bold>{value}</Label>
</div>