0

I'm using filepond with react and material-ui.

If I add very basic filepond component, like this:

 <FilePond name="files" labelIdle="" />

It will render default browser input with type file, like this:

enter image description here

I want to render custom material-ui button instead. I know that FilePond can be styled in a different way via CSS, but it's not about styling with CSS-classes, but about inserting predefined component, like naterial-ui one. Is it possible?

1 Answer 1

1

Based on the code in the github, linked here, https://github.com/pqina/react-filepond/blob/master/lib/index.js, the package is creating the input element directly rather than wrapping a passed in component. Therefore you cannot pass in a predefined Material-UI component. If you want to use Material-UI styles you'll have to do the styling yourself or edit the filepond package to support passing in a component.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.