marsidev / react-turnstile

Cloudflare Turnstile integration for React.
https://www.npmjs.com/package/@marsidev/react-turnstile
MIT License
414 stars 25 forks source link

Add "auto" size option #71

Closed harrygr closed 5 months ago

harrygr commented 5 months ago

This size option doesn't apply any width/height to the widget unlike the explicit options (normal/compact/invisible). This allows changing the widget type in the Turnstile settings page without needed to make the corresponding size change in code. Using size: 'auto' may come at the cost of the user experiencing some layout shift depending in some cases.

codesandbox[bot] commented 5 months ago

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-turnstile ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 7:47pm
marsidev commented 5 months ago

Thanks for contributing! @harrygr