Skip to content
Source
Sign inSign up
TanStack/table

Moving hardcoded className's into defaultProps #41

Closedcorpix(GitHub profile, opens in a new tab)wants to merge 3 commits intomaster fromrefs/pull/41/headopened

Hello.

I have moved hardcoded classes to defaultProps. This modification will allow to use this component with css modules(I want make a wrapper component which should look great in material-ui so I need this kind of flexibility).

Is it ok to do it this way? If so I will update the documentation.

Thank you.

    1. This is cool. But are the core styles broken if you set one of these props? You would be required to set it to the original class name and your new class name

    2. tannerlinsley requested changes

      I think the direction we would want to go is something like a global option to disableStyles and/or disableClasses that would allow a ground-up customization. Do you think this would work for your use case?

    3. See the changes in version 5. If this is still needed, reopen.

    4. tannerlinsley closed this

Sign in to join this conversation.