Skip to content

Commit c137dd6

Browse files
committed
feat(accordiosn): update icon types to ReactElement
1 parent f06b557 commit c137dd6

File tree

2 files changed

+101
-3
lines changed

2 files changed

+101
-3
lines changed

package-lock.json

Lines changed: 98 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/accordions/src/types/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import { IUseAccordionProps } from '@zendeskgarden/container-accordion';
99
import {
10-
ReactNode,
10+
ReactElement,
1111
SVGAttributes,
1212
HTMLAttributes,
1313
LiHTMLAttributes,
@@ -49,7 +49,7 @@ export interface IStepperProps extends OlHTMLAttributes<HTMLOListElement> {
4949

5050
export interface IStepperLabelProps extends HTMLAttributes<HTMLDivElement> {
5151
/** Replaces the label number with an icon */
52-
icon?: ReactNode;
52+
icon?: ReactElement;
5353
/** Passes props to the default check icon */
5454
iconProps?: SVGAttributes<SVGElement>;
5555
/** Hides the label text */
@@ -63,7 +63,7 @@ export interface ITimelineProps extends OlHTMLAttributes<HTMLOListElement> {
6363

6464
export interface ITimelineItemProps extends LiHTMLAttributes<HTMLLIElement> {
6565
/** Replaces the dot with an icon */
66-
icon?: ReactNode;
66+
icon?: ReactElement;
6767
/** Provides surface color for an icon placed on a non-white background */
6868
surfaceColor?: string;
6969
}

0 commit comments

Comments
 (0)