Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[joy-ui][docs] Add FileUpload demo #38420

Merged
merged 4 commits into from
Aug 11, 2023
Merged

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented Aug 11, 2023

This PR adds a new demo which showcases how to turn Button component to input component with type as file.

preview: https://deploy-preview-38420--material-ui.netlify.app/joy-ui/react-button/#file-upload

@sai6855 sai6855 added docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy labels Aug 11, 2023
@mui-bot
Copy link

mui-bot commented Aug 11, 2023

Netlify deploy preview

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 4e19b16

@sai6855 sai6855 added the component: button This is the name of the generic UI component, not the React module! label Aug 11, 2023
Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks! @sai6855

Copy link
Contributor

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks super good! One thing though, I think that this File upload + Link button should probably be under "Customization". The icon button makes sense to be outside of it as it's a different component entirely, but these two are mostly customizations. What do you think?

docs/data/joy/components/button/button.md Outdated Show resolved Hide resolved
@sai6855
Copy link
Contributor Author

sai6855 commented Aug 11, 2023

What do you think?

I agree, it makes more sense to place Link and file upload demos under customization

Copy link
Contributor

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome! 🚀

@danilo-leal danilo-leal merged commit 27fddcf into mui:master Aug 11, 2023
18 checks passed
@sai6855 sai6855 deleted the demo-button branch August 11, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants