Skip to content

Commit 52ae72e

Browse files
committed
feat: add 'withCaret' property to DocksCommand for customizable dropdown behavior
1 parent 6acd17e commit 52ae72e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/core/src/components/command.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export class DocksCommand extends DocksWidget {
4343
@property()
4444
dropdown?: string
4545

46+
@property({ type: Boolean, attribute: 'with-caret' })
47+
withCaret: boolean = true
48+
4649
@property()
4750
placement: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' = 'bottom-start'
4851

@@ -161,7 +164,7 @@ export class DocksCommand extends DocksWidget {
161164
variant=${this.variant}
162165
size=${this.size}
163166
?disabled=${this.disabled}
164-
with-caret
167+
?with-caret=${this.withCaret}
165168
title=${keybinding ? `${this.title} (${keybinding})` : this.title}>
166169
${icon(this.icon, { label: this.title, slot: 'start' })}
167170
<slot></slot>

0 commit comments

Comments
 (0)