@muraldevkit/ui-toolkit 4.38.0-dev-qOWj.1 → 4.38.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.
@@ -3,6 +3,8 @@ import { NavLinkProps } from 'react-router-dom';
3
3
  export interface MrlTabLinkProps extends NavLinkProps {
4
4
  /** Class to be applied to the NavLink element of the MrlTabLink */
5
5
  className?: string;
6
+ /** Children to be rendered within the text component */
7
+ children?: React.ReactNode;
6
8
  icon?: React.ReactElement;
7
9
  /**
8
10
  * The id that will be passed to the MrlTabContext to set the active state.
@@ -11,7 +13,11 @@ export interface MrlTabLinkProps extends NavLinkProps {
11
13
  id: string;
12
14
  /** An addition function to call when clicking on a tab */
13
15
  hookClick?: () => void;
14
- text: string;
16
+ /**
17
+ * Textual content when it's a static string; if you have nested elements,
18
+ * use children to provide content
19
+ */
20
+ text?: string;
15
21
  }
16
22
  /**
17
23
  * Renders a tab component
@@ -19,4 +25,4 @@ export interface MrlTabLinkProps extends NavLinkProps {
19
25
  * @param {MrlTabLinkProps} props the props for your MrlTabLink
20
26
  * @returns {React.ReactElement} an a element containing the text you pass
21
27
  */
22
- export declare const MrlTabLink: ({ className, icon, id, hookClick, text, to, ...remainingProps }: MrlTabLinkProps) => React.ReactElement;
28
+ export declare const MrlTabLink: ({ className, children, icon, id, hookClick, text, to, ...remainingProps }: MrlTabLinkProps) => React.ReactElement;