@muraldevkit/ui-toolkit 4.26.0 → 4.27.0

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.
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { NavLinkProps } from 'react-router-dom';
3
+ export interface MrlTabLinkProps extends NavLinkProps {
4
+ /** Class to be applied to the NavLink element of the MrlTabLink */
5
+ className?: string;
6
+ icon?: React.ReactElement;
7
+ /**
8
+ * The id that will be passed to the MrlTabContext to set the active state.
9
+ * NOTE: This must match the `tabId` set on `MrlTabContent`!
10
+ */
11
+ id: string;
12
+ /** An addition function to call when clicking on a tab */
13
+ hookClick?: () => void;
14
+ text: string;
15
+ }
16
+ /**
17
+ * Renders a tab component
18
+ *
19
+ * @param {MrlTabLinkProps} props the props for your MrlTabLink
20
+ * @returns {React.ReactElement} an a element containing the text you pass
21
+ */
22
+ export declare const MrlTabLink: ({ className, icon, id, hookClick, text, to, ...remainingProps }: MrlTabLinkProps) => React.ReactElement;
@@ -0,0 +1 @@
1
+ export * from './MrlTabLink';
@@ -1,4 +1,5 @@
1
1
  export * from './MrlTab';
2
2
  export * from './MrlTabContent';
3
3
  export * from './MrlTabGroup';
4
+ export * from './MrlTabLink';
4
5
  export * from './MrlTabs';