Closed danieljarrett74 closed 2 years ago
I wanted to make the suggestion of adding a union type for typescript that includes all icons. This way we can define fields for our component properties that restrict to that union type. Would that work?
export interface IButtonProps extends React.ButtonHTMLAttributes { icon: HeroIcon | undefined;
}
I wanted to make the suggestion of adding a union type for typescript that includes all icons. This way we can define fields for our component properties that restrict to that union type. Would that work?
export interface IButtonProps extends React.ButtonHTMLAttributes {
icon: HeroIcon | undefined;
}