Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add "size" to props
  • Loading branch information
Jay Simons committed Aug 7, 2024
1 parent 2c79cea commit f86494b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Turnstile takes the following arguments:
| action | string | - |
| cData | string | - |
| theme | string | one of "light", "dark", "auto" |
| size | string | one of "normal", "compact". default: "normal" |
| tabIndex | number | - |
| responseField | boolean | controls generation of `<input />` element |
| responseFieldName | string | changes the name of `<input />` element |
Expand All @@ -66,7 +67,7 @@ And the following callbacks:
| onVerify | token | called when challenge is passed (REQUIRED) |
| onLoad | widgetId | called when the widget is loaded |
| onError | error | called when an error occurs |
| onExpire | - | called when the token expires |
| onExpire | token | called when the token expires |
| onTimeout | - | called when the challenge expires |

For more details on what each argument does, see the [Cloudflare Documentation](https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#configurations).

0 comments on commit f86494b

Please sign in to comment.