@@ -22,21 +22,43 @@ import { IconBaseColorType, IconBaseSizeType } from '@Shared/index'
2222type IconMap = Record < string , FC < SVGProps < SVGSVGElement > > >
2323
2424export interface IconBaseProps {
25- /** The name of the icon to render. */
25+ /**
26+ * The name of the icon to render.
27+ */
2628 name : keyof IconMap
27- /** The map containing all available icons. */
29+ /**
30+ * A map containing all available icons.
31+ */
2832 iconMap : IconMap
2933 /**
30- * The size of the icon in pixels.
34+ * The size of the icon in pixels. If not provided, the default size is `16px`.
35+ *
3136 * @default 16
3237 */
3338 size ?: IconBaseSizeType | null
34- /** Props to configure the tooltip when hovering over the icon. */
39+ /**
40+ * Configuration for the tooltip displayed when hovering over the icon.
41+ */
3542 tooltipProps ?: TooltipProps
3643 /**
37- * The color of the icon (color tokens). \
38- * If `null`, the default color present in icon is used.
39- * @example `'B500'`, `'N200'`, `'G50'`, `'R700'`
44+ * The color of the icon, specified using predefined color tokens.
45+ * If set to `null`, the icon's default color will be used.
46+ *
47+ * @example 'B500', 'N200', 'G50', 'R700'
4048 */
4149 color : IconBaseColorType
50+ /**
51+ * A unique identifier for testing purposes, typically used in test automation.
52+ */
53+ dataTestId ?: string
54+ /**
55+ * Rotates the icon by the specified number of degrees.
56+ *
57+ * @example 90, 180, 270
58+ */
59+ rotateBy ?: number
60+ /**
61+ * If true, the icon will expand to fill the available space of its container.
62+ */
63+ fillSpace ?: boolean
4264}
0 commit comments