ruigomeseu / vue-turnstile

A Cloudflare Turnstile library for Vue 3
MIT License
63 stars 9 forks source link

Add Javascript render parameters #15

Open mmcarvalho opened 6 months ago

mmcarvalho commented 6 months ago

Hi, great job on this package. It would be very nice to support render configurations. Imagine this scenario: render the turnstile on a button click, but with appearance="interaction-only". Since it takes a bit to act, a loading overlay is shown. If the challenge appears, currently there is no way to know it without listening to the DOM, so the loader can be removed.
If 'before-interactive-callback' would be supported, it would be a matter of configuring the callback. Does this make sense or am I missing something out? Thanks.