Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

[Question]: Is there any alternative to @radix-ui/react-polymorphic?  #358

@LucasCaixeta

Description

@LucasCaixeta

In our design system (storybook), without the Polymorphic, called as:

type ButtonComponent = Polymorphic.ForwardRefComponent<'button', CustomProps>;

We're losing the "autocomplete" for the component when we import it somewhere.
We want to remove the Polymorphic and use some native alternative from react...
what do you suggest?

Currently, when we remove the Polymorthic we really loose the autocomplete, the props that the component can receive ...

e.g:

<Button    ????      />

after button, when I do command + space do not show the possible props to use... if we remove the Polymorthic usage.

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