Skip to content

static prop on Input component #485

@corydeppen

Description

@corydeppen

While this is related to a TypeScript definition file, I wanted to submit the issue here since a change may need to be made in this repo before the definition is updated (+1 for co-locating definitions in this repo).

As the comment in the Input definition file states, static is a keyword in both JS and TS and therefore cannot be used as a property in the InputProps interface. As a result, folks need to use the form-control-static class in their components. That's obviously not the end of the world, but I think it's safe to assume using a prop is preferable.

I wanted to see if there were any ideas about whether there'd be a way to support this by using a non-reserved word as a prop.

/cc @alihammad @mfal @danilobjr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions