Welcome
Matestack Ui Bootstrap - Beautiful, reactive web UIs, Ruby and you!
Why?
class Components::CardComponent < Matestack::Ui::Component
required :title
optional :image_path, :content
def response
div class: "card shadow-sm border-0 bg-light" do
img path: context.image_path, class: "w-100" if context.image_path
body_partial
end
end
private
def body_partial
div class: "card-body" do
h5 context.title, class: "card-title"
paragraph context.content, class: "card-text" if context.content
end
end
endLive Demo

Getting Started
Quick Start [WIP]Roadmap
Last updated