@up42/up-components 0.9.0 → 0.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.
|
@@ -13,9 +13,13 @@ export declare type TabGroupProps = {
|
|
|
13
13
|
* A unique value should be provided when multiple tabGroup components are used on the same page.
|
|
14
14
|
*/
|
|
15
15
|
nameSpace?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Set defaultValue for routing to a specific tab using useQueryParam('tab') in parent component
|
|
18
|
+
*/
|
|
19
|
+
defaultValue?: string | number;
|
|
16
20
|
};
|
|
17
21
|
/**
|
|
18
22
|
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-tabgroup
|
|
19
23
|
*/
|
|
20
|
-
export declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps }: TabGroupProps) => JSX.Element;
|
|
24
|
+
export declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue }: TabGroupProps) => JSX.Element;
|
|
21
25
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -338,11 +338,15 @@ declare type TabGroupProps = {
|
|
|
338
338
|
* A unique value should be provided when multiple tabGroup components are used on the same page.
|
|
339
339
|
*/
|
|
340
340
|
nameSpace?: string;
|
|
341
|
+
/**
|
|
342
|
+
* Set defaultValue for routing to a specific tab using useQueryParam('tab') in parent component
|
|
343
|
+
*/
|
|
344
|
+
defaultValue?: string | number;
|
|
341
345
|
};
|
|
342
346
|
/**
|
|
343
347
|
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-tabgroup
|
|
344
348
|
*/
|
|
345
|
-
declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps }: TabGroupProps) => JSX.Element;
|
|
349
|
+
declare const TabGroup: ({ tabs, nameSpace: _nameSpace, tabContentProps, tabsProps, defaultValue }: TabGroupProps) => JSX.Element;
|
|
346
350
|
|
|
347
351
|
declare type EmptyStateProps<C extends React__default.ElementType = 'div'> = BaseProps<C, {
|
|
348
352
|
/**
|