Skip to content

TypeScript inline definitions #2039

@vorillaz

Description

@vorillaz

Describe the bug
Hi there, thanks a ton for the amazing library, it is a breeze using it.
I have a question regarding TypeScript inline definitions using the as prop:
Is there any way to use theme-ui along with TypeScript without redeclaring and exporting the component?

A solution as following would be amazing:

<Box<AmazingLinkProps> as="a" href="/buzz"></Box>

Screenshots
Screenshot 2021-12-11 at 11 51 31 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions