Sha256: 3f011484f8c2f53e563bce6b93ac814691068b088525d3051ae2039288e7f0f8
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true module RailsDevtools module Components class PageContent < Components::ApplicationComponent def view_template(&) turbo_frame_tag("page_content", &) end def page_title(&) h1(class: "text-2xl font-bold", &) end def search_form(form:, path:, method: :get) render Components::Ui::SearchForm.new( form: form, path: path, method: method ) end def results(&) div(class: "mt-4", &) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems