Skip to content

[File-input] Modify the button label #687

Closed Answered by aweell
aweell asked this question in Ideas
Discussion options

You must be logged in to vote

Recap of the proposal

  • The prop for the label change will be added to the file-input as buttonLabel
  • If is undefined the default will display "Select files" in the multiple variant and "Select file" in the single.
  • The uses cases for changing the label, helper text, and button label will be added to the file-input documentation
    • The label should explain the purpose of the field (e.g. Attach documentation xyz)
    • Helper-text is meant to add additional details needed (e.g. The file size should be less than 25MB)
    • The button label should indicate the purpose of the action (e.g. select PDF)

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@aweell
Comment options

aweell Feb 16, 2022
Collaborator Author

Comment options

aweell
Feb 18, 2022
Collaborator Author

You must be logged in to vote
2 replies
@aweell
Comment options

aweell Feb 21, 2022
Collaborator Author

@GomezIvann
Comment options

Answer selected by GomezIvann
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants