@aurora-ds/components 1.8.7 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +39 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +39 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2955,6 +2955,17 @@ type MenuItemProps = HTMLAttributes<HTMLLIElement> & {
|
|
|
2955
2955
|
* @default 'default'
|
|
2956
2956
|
*/
|
|
2957
2957
|
size?: MenuItemSize;
|
|
2958
|
+
/**
|
|
2959
|
+
* When provided, renders the item's content wrapped in an `<a>` for navigation.
|
|
2960
|
+
* Use with `onClick` for SPA routing (e.g. React Router) — the click handler
|
|
2961
|
+
* will be called and the browser will NOT follow the href (same logic as DrawerItem).
|
|
2962
|
+
*/
|
|
2963
|
+
href?: string;
|
|
2964
|
+
/**
|
|
2965
|
+
* HTML `target` attribute forwarded to the `<a>` element when `href` is set.
|
|
2966
|
+
* When set to `'_blank'`, `rel="noopener noreferrer"` is added automatically.
|
|
2967
|
+
*/
|
|
2968
|
+
target?: string;
|
|
2958
2969
|
/**
|
|
2959
2970
|
* Whether clicking the item closes the whole menu (in addition to running
|
|
2960
2971
|
* `onClick`).
|