v1ack / svelte-virtual-scroll-list

Virtualized scrolling for big lists
https://v1ack.github.io/svelte-virtual-scroll-list/
MIT License
114 stars 18 forks source link

How to style the container? #12

Open umesh-timalsina opened 1 year ago

umesh-timalsina commented 1 year ago

Basically, what if we wanted some custom styles to be added to the container for the virtual list, it seems like no properties are exported for that. Wanted to know a proper way of doing this without using global css.

v1ack commented 1 year ago

As for now, there are 3 css classes that you can extend. You can do it globally, or in the parent with :global(.virtual-list-wrapper)

flicksolutions commented 8 months ago

Hi @v1ack a class prop for the virtual-list-wrapper would be much appreciated. This would make it work more straight forward with things like tailwind.

Thank you for this awesome package!