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

Add missing size values to README #35

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

bdlowery
Copy link
Contributor

The size prop takes 4 values: "flexible" | "normal" | "compact" | "invisible"

Flexible and invisible were missing so I added them to the readme.

@bdlowery bdlowery changed the title Readme update Add missing size values to README Jan 10, 2025
README.md Outdated
@@ -82,7 +82,7 @@ Turnstile takes the following arguments:
| tabIndex | number | - |
| responseField | boolean | controls generation of `<input />` element |
| responseFieldName | string | changes the name of `<input />` element |
| size | string | one of "normal", "compact" |
| size | string | one of "normal", "compact", "flexible", invisible |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small detail: quotation marks are missing for invisible

Suggested change
| size | string | one of "normal", "compact", "flexible", invisible |
| size | string | one of "normal", "compact", "flexible", "invisible" |

README.md Outdated
@@ -82,7 +82,7 @@ Turnstile takes the following arguments:
| tabIndex | number | - |
| responseField | boolean | controls generation of `<input />` element |
| responseFieldName | string | changes the name of `<input />` element |
| size | string | one of "normal", "compact" |
| size | string | one of "normal", "compact", "flexible", invisible |
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| size | string | one of "normal", "compact", "flexible", invisible |
| size | string | one of "normal", "compact", "flexible" |

Invisible is purposefully not documented. It’s in the types, so you can use it if you know what you’re doing, but if it’s documented, people may think it’s like the invisible mode

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe with a footnote…

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a valid point. I went ahead and removed it.

@bdlowery bdlowery requested a review from Le0Developer January 14, 2025 19:11
@Le0Developer Le0Developer merged commit 6046f7a into Le0Developer:main Jan 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants