General Component API
Response
class Some::Component < Matestack::Ui::Component
def response
div id: "my-component" do
plain "hello world!"
end
end
endclass ExamplePage < Matestack::Ui::Page
def response
div id: "div-on-page" do
some_component
end
end
endPrepare
Params access
Passing options to components
Define optional and required properties
Requires
Optional
Passing properties to components
Alias properties
Arguments
Yielding inside components
Partials
Local partials on component level
Modules: Partials on steriods!
Slots
Slots on the page instance scope
Using slots of components within components
Last updated
Was this helpful?