Skip to content

Type declaration exports #62

Answered by rtivital
zeropaper asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for feedback!
Sure, I was thinking about exporting props but did not have time, if you'll create a PR that will be great.

Meanwhile, the easy solution to your problem is to use React.ComponentProps type:

import { Button } from '@mantine/core';

type ButtonProps = React.ComponentProps<typeof Button>;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zeropaper
Comment options

Answer selected by zeropaper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants