You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
426 B
16 lines
426 B
# frozen_string_literal: true
|
|
|
|
module Demo
|
|
class Preview < ApplicationViewComponentPreview
|
|
# You can specify the container class for the default template
|
|
# self.container_class = "w-1/2 border border-gray-300"
|
|
|
|
def default
|
|
render_component Demo::Component.new
|
|
end
|
|
|
|
def with_missing_translation
|
|
render_component Demo::Component.new(title: '.missing', text: '.other_missing')
|
|
end
|
|
end
|
|
end
|
|
|