react icon indicating copy to clipboard operation
react copied to clipboard

TextInput extra mandatory props

Open nazarifard opened this issue 7 months ago • 2 comments

Description

<TextInput /> should be worked based on official primer/react documentation at https://primer.style/product/components/text-input but it doesnt work properly. typescript reports a valid error because it need some optional props that is defined mandatory props wrongly. I think all following props should be defined as optional.

Image

Steps to reproduce

just type <TextInput /> within vscode editor and then press ctrl-space without definition of all above props typescript reports ts(2769) error!

Version

v37.25.0

Browser

Chrome

nazarifard avatar Jun 09 '25 19:06 nazarifard

Uh oh! @nazarifard, at least one image you shared is missing helpful alt text. Check your issue body to fix the following violations:

  • Images should have meaningful alternative text (alt text) at line 7

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.

github-actions[bot] avatar Jun 09 '25 19:06 github-actions[bot]

thanks for flagging this with us! we've got it on our radar, but haven't prioritized it right this moment. we appreciate you bringing this to our attention!

hellojanehere avatar Jun 10 '25 15:06 hellojanehere