Skip to content

Fix : ResponsiveIconButton type #288

Closed
@karimBS69

Description

@karimBS69

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions