@opencxh/ui-kit 3.141.0 → 3.143.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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/src/action/SegmentedToggle.d.ts +5 -0
- package/package.json +1 -1
|
@@ -2,6 +2,11 @@ import { default as React } from 'react';
|
|
|
2
2
|
export interface SegmentedOption<T extends string> {
|
|
3
3
|
value: T;
|
|
4
4
|
label: React.ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Accessible name and tooltip, for a segment whose label is an icon. Without
|
|
7
|
+
* it an icon-only segment announces as an empty tab.
|
|
8
|
+
*/
|
|
9
|
+
title?: string;
|
|
5
10
|
}
|
|
6
11
|
export interface SegmentedToggleProps<T extends string> {
|
|
7
12
|
options: SegmentedOption<T>[];
|