Skip to content

[feat] FileInput should allow optional preview header text #3115

@mkalish

Description

@mkalish

Does your feature request relate to a specific USWDS component?

FileInput

What USWDS Version is this feature present in?

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like

FileInput accepts a new optional prop previewHeadingText that allows overriding the "Change file" and "Selected file" portion of the UI

Describe alternatives you've considered

FileInput accepts a new optional prop fileTypeDescriptorText that would override just the word "file" in the example above.

Additional context

Screenshot of the result after an expected change

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions