start-ui-web icon indicating copy to clipboard operation
start-ui-web copied to clipboard

Fix : ResponsiveIconButton type

Open karimBS69 opened this issue 2 years ago β€’ 0 comments

Description

Using as in <ResponsiveIconButton /> triggers this error :

Type '{ children: string; as: string; }' is not assignable to type 'IntrinsicAttributes & ResponsiveIconButtonProps'.
  Property 'as' does not exist on type 'IntrinsicAttributes & ResponsiveIconButtonProps'.

which is caused by the re-using of a component with pre-defined styles.

Suggested solution

Forward component as a 'button'.

karimBS69 avatar Sep 22 '22 13:09 karimBS69