Skip to content

Feature: Dynamic chip props based on FileObject instance #290

Open
@alichry

Description

@alichry

FR: Dynamic chip props based on FileObject instance.

Describe the problem related to this feature request

I want to validate specific files based on some custom logic. This can be done by either having full control over rendering each uploaded file or passing custom classes or props to the invalid chip (file). I do not want to display an error message upon receiving an invalid file. Instead, I want to it to be added with a red border.

Describe the solution you'd like

This could be delivered by passing a func that accepts a FileObject and returns chip props. previewChipProps can be modified to accept a func

Describe alternatives you've considered

N/A


I would like to start working on this and submit a PR, can we proceed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions