Skip to content

Make Input id as required (in TS typings) #51

@JForsaken

Description

@JForsaken

Description

The id for an Input should probably be marked as required by it's TS typings. If not, its label will not have labelFor set.

Expected behavior

Spit out a TS error when id is not present.

Actual behavior

Not having an id is not flagged as an error, while the docs state that id should be set.

image

Steps to reproduce the problem

  1. Create an Input and don't set the id prop
  2. No TS errors/warnings

Specifications

  • Affected component(s): Input
  • Versions: latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions