Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why HCaptchaProps was not exported? #150

Open
XAKEPEHOK opened this issue Jul 26, 2022 · 1 comment
Open

Why HCaptchaProps was not exported? #150

XAKEPEHOK opened this issue Jul 26, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@XAKEPEHOK
Copy link

XAKEPEHOK commented Jul 26, 2022

Hello!
I want to wrap HCaptcha component in my own wrapper, which should watch for app-level theme and language changing, and chage it for HCaptcha. Of course, i want use my wrapper as clear HCaptcha component with possibility of pass all props, that declared in HCaptchaProps, but HCaptchaProps was not exported, and i cant do that. Now, i just copy-pase all HCaptchaProps in my own props interface (instead of extends it), but its not good way
May be you can export HCaptchaProps?

@e271828- e271828- added the enhancement New feature or request label Jul 26, 2022
@XAKEPEHOK
Copy link
Author

XAKEPEHOK commented Jul 26, 2022

I discover, that it can be accessed by something like

import HCaptcha from "@hcaptcha/react-hcaptcha";

type HCaptchaProps = HCaptcha['props']

But i think, that export of HCaptchaProps interface is much convenient

@hCaptcha hCaptcha deleted a comment from Badraly1984 Jan 4, 2024
@hCaptcha hCaptcha deleted a comment from Badraly1984 Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants