React-sortable-tree: [Request] Better way to change styles

Created on 4 Jan 2018  路  3Comments  路  Source: frontend-collective/react-sortable-tree

Hello.

I'm using this lib and loving it, but i had some hard time trying to style it. Can we have some way to write our themes only in SASS or CSS and apply using theme prop? I think it will be a amazing feature.

Thanks in advance.

question

All 3 comments

ideally it would be good if we could pass in a prop which is the component that can render a node. It receives all the tree data and renders itself - that would solve the styling issue and make the UI much more customisable.

Since v2.0.0 it is easier to override styles with your own CSS see #247

@kaueDM @ajeffrey I would consider using the theme prop or for even more customization use the nodeContentRenderer prop

or even write your own theme :)

Hope that helps

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oarashi picture oarashi  路  5Comments

CrazyCodingBanana picture CrazyCodingBanana  路  4Comments

mcolburn picture mcolburn  路  4Comments

xmhscratch picture xmhscratch  路  5Comments

jorgecuesta picture jorgecuesta  路  4Comments