컴포넌트 관련 사소한 리팩토링

This commit is contained in:
static
2025-01-27 20:17:20 +09:00
parent 7230810f3a
commit acb6e1ac6e
22 changed files with 70 additions and 50 deletions

View File

@@ -11,7 +11,7 @@
textClass?: ClassValue;
}
let { name, subtext, ...props }: Props = $props();
let { class: className, name, subtext, textClass: textClassName }: Props = $props();
</script>
{#snippet subtextSnippet()}
@@ -21,8 +21,8 @@
<IconLabel
icon={IconCategory}
subtext={subtext ? subtextSnippet : undefined}
class={props.class}
textClass={props.textClass}
class={className}
textClass={textClassName}
>
{name}
</IconLabel>