Class: Irelia::SplitScreen::Preview
- Inherits:
-
ComponentPreview
- Object
- ComponentPreview
- Irelia::SplitScreen::Preview
- Defined in:
- app/components/irelia/split_screen/preview.rb
Instance Method Summary collapse
-
#default ⇒ Object
You can specify the container class for the default template self.container_class = “w-1/2 border border-gray-300”.
Instance Method Details
#default ⇒ Object
You can specify the container class for the default template self.container_class = “w-1/2 border border-gray-300”
7 8 9 10 11 |
# File 'app/components/irelia/split_screen/preview.rb', line 7 def default component = Irelia::SplitScreen::Component.new component.with_content("Main content!") render component end |