Skip to content

Commit 70472e0

Browse files
authored
chore: drop props.
1 parent 0826806 commit 70472e0

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/components/Tag/Clickable.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ const props = withDefaults(
1414
class="inline-flex items-center px-2 py-0.5 text-xs font-mono border rounded transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-fg focus-visible:ring-offset-1"
1515
:class="{
1616
'bg-bg-muted text-fg-muted border-border hover:(text-fg border-border-hover)':
17-
props.status === 'default',
18-
'bg-fg text-bg border-fg hover:(text-text-bg/50)': props.status === 'active',
19-
'opacity-50 cursor-not-allowed': props.disabled,
17+
status === 'default',
18+
'bg-fg text-bg border-fg hover:(text-text-bg/50)': status === 'active',
19+
'opacity-50 cursor-not-allowed': disabled,
2020
}"
21-
:disabled="props.disabled"
21+
:disabled="disabled"
2222
>
2323
<slot />
2424
</component>

app/components/Tag/Static.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const props = withDefaults(defineProps<{ as?: string | Component }>(), { as: 'sp
44

55
<template>
66
<component
7-
:is="props.as"
7+
:is="as"
88
class="inline-flex items-center px-2 py-0.5 text-xs font-mono text-fg-muted bg-bg-muted border border-border rounded"
99
>
1010
<slot />

0 commit comments

Comments
 (0)