Skip to content

TextInput extra mandatory props #6187

Open
@nazarifard

Description

@nazarifard

Description

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 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions