segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.38k stars 830 forks source link

Add props for FileUploader i18n support #1531

Closed brandongregoryscott closed 1 year ago

brandongregoryscott commented 1 year ago

Overview

Resolves #1459

This PR introduces two new props to the FileUploader to allow the inner/CTA text as well as the validation message on drag to be overridden. The default behavior/copy should remain the same and these props are optional.

Screenshots (if applicable)

(From Storybook)

Custom browseOrDragText function that returns a string

FileUploader - browseOrDragText

Custom dragMaxFilesMessage function

FileUploader - dragMaxFilesMessage

Documentation

netlify[bot] commented 1 year ago

Deploy Preview for evergreen-storybook ready!

Name Link
Latest commit 9955a1eda8cf04871f534a98c9210f887d54c177
Latest deploy log https://app.netlify.com/sites/evergreen-storybook/deploys/6345f7ea176ffb00089949da
Deploy Preview https://deploy-preview-1531--evergreen-storybook.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] commented 1 year ago

Deploy Preview for evergreen-storybook ready!

Name Link
Latest commit 813c92fd22d3c609d8a7847d7ec8d1c4344047f8
Latest deploy log https://app.netlify.com/sites/evergreen-storybook/deploys/63581cb8072561000bfa6b00
Deploy Preview https://deploy-preview-1531--evergreen-storybook.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.