sy-ui-lib 1.0.37 → 1.0.38
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/components/Icon/Icon.component.d.ts +2 -1
- package/dist/components/Icon/Icon.types.d.ts +2 -0
- package/dist/index.cjs +7 -7
- package/dist/index.css +1 -1
- package/dist/index.js +158 -157
- package/package.json +1 -1
|
@@ -13,9 +13,10 @@ import { IconProps } from './Icon.types';
|
|
|
13
13
|
* @param {function} onClick If provided, icon becomes clickable and renders as a <button>
|
|
14
14
|
* @param {boolean} cursorPointer Enables pointer cursor styling when true. Defaults to true.
|
|
15
15
|
* @param {boolean} disabled Disabled pointer cursor styling when true. Defaults to false.
|
|
16
|
+
* @param {string} tooltipText Tooltip displayed on hover.
|
|
16
17
|
*
|
|
17
18
|
* @example
|
|
18
|
-
* <Icon icon='view' size={24} size={20} color="smokyblack" onClick={()=> console.log("clicked")} />
|
|
19
|
+
* <Icon icon='view' size={24} size={20} color="smokyblack" onClick={()=> console.log("clicked")} tooltipText="View account details." />
|
|
19
20
|
*/
|
|
20
21
|
declare const Icon: React.FC<IconProps>;
|
|
21
22
|
export default Icon;
|