rixo / svench

A lightweight workbench to develop your Svelte components in isolation
svench-docs.vercel.app
207 stars 6 forks source link

customizing css classes for View Component #37

Closed bhvngt closed 3 years ago

bhvngt commented 3 years ago

I bumped into this use case where I was trying to make the width 100% for my component container. This requires parent container to be also set to width 100%. Would it make sense to expose and override the class of View component so that such use cases can be addressed by passing classes to the View Component. I am attaching a screenshot for your ref.

image image

rixo commented 3 years ago

Customization of the View component in multiple way, somehow, is on the roadmap...

But if I understand what you need right now, this should already be covered by adding block prop to the current View component: <View block ... >.

bhvngt commented 3 years ago

Thanks @rixo. That worked. Closing this issue and looking forward to the future releases of this really useful project.