-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
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 | |
There was a problem hiding this comment.
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
| 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 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe with a footnote…
There was a problem hiding this comment.
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.
The size prop takes 4 values: "flexible" | "normal" | "compact" | "invisible"
Flexible and invisible were missing so I added them to the readme.