We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aefe19 commit 902a84fCopy full SHA for 902a84f
chips/internal/assist-chip.ts
@@ -19,6 +19,12 @@ import {Chip} from './chip.js';
19
export class AssistChip extends Chip {
20
@property({type: Boolean}) elevated = false;
21
@property() href = '';
22
+ /**
23
+ * The filename to use when downloading the linked resource.
24
+ * If not specified, the browser will determine a filename.
25
+ * This is only applicable when the chip is used as a link (`href` is set).
26
+ */
27
+ @property() download = '';
28
@property() target: '_blank' | '_parent' | '_self' | '_top' | '' = '';
29
30
protected get primaryId() {
@@ -49,6 +55,7 @@ export class AssistChip extends Chip {
49
55
id="link"
50
56
aria-label=${ariaLabel || nothing}
51
57
href=${this.href}
58
+ download=${this.download || nothing}
52
59
target=${this.target || nothing}
53
60
>${content}</a
54
61
>
0 commit comments