You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5615,6 +5615,7 @@ The following properties are supported across all types:
5615
5615
### action
5616
5616
5617
5617
- \`href\` (string) - (Optional) Defines the target URL of the menu item, turning it into a link.
5618
+
- \`download\` (boolean | string) - (Optional) Indicates that the link should be downloaded when clicked. Only works when \`href\` is also provided. If set to \`true\`, the browser will use the filename from the URL. If set to a string, that string will be used as the suggested filename.
5618
5619
- \`external\` (boolean) - Marks a menu item as external by adding an icon after the menu item text. The link will open in a new tab when clicked. Note that this only works when \`href\` is also provided.
5619
5620
- \`externalIconAriaLabel\` (string) - Adds an \`aria-label\` to the external icon.
5620
5621
- \`iconName\` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).
* - `href` (string) - (Optional) Defines the target URL of the menu item, turning it into a link.
36
+
* - `download` (boolean | string) - (Optional) Indicates that the link should be downloaded when clicked. Only works when `href` is also provided. If set to `true`, the browser will use the filename from the URL. If set to a string, that string will be used as the suggested filename.
36
37
* - `external` (boolean) - Marks a menu item as external by adding an icon after the menu item text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.
37
38
* - `externalIconAriaLabel` (string) - Adds an `aria-label` to the external icon.
38
39
* - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).
0 commit comments