Tag: viewcomponent
-
Default, Dynamic Slot Content in Rails ViewComponents
Have you ever wanted to have a default value for a ViewComponent slot, or to make the default value dynamic?
-
Rails "Disable-able" button component
Here’s a simple ViewComponent/Stimulus controller for a disable-able button; that is, a button that you can programmatically disable/enable. You could use this to prevent form submission until all fields are valid.