opf/openproject

View on GitHub
lookbook/previews/op_turbo/frame_component_preview.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module OpTurbo
  # @logical_path OpenProject/OpTurbo
  class FrameComponentPreview < Lookbook::Preview
    # Renders a turbo-frame tag with a unique id
    # @param context text
    def default(context: nil)
      model = FactoryBot.build_stubbed(:user)
      render_with_template(locals: { model:, context: })
    end
  end
end