Class: Irelia::Container::Preview
- Inherits:
-
Irelia::ComponentPreview
- Object
- Irelia::ComponentPreview
- Irelia::Container::Preview
- Defined in:
- app/components/irelia/container/preview.rb
Instance Method Summary collapse
- #centered ⇒ Object
-
#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
#centered ⇒ Object
13 14 15 16 17 |
# File 'app/components/irelia/container/preview.rb', line 13 def centered irelia_container size: :lg, center: true do "The container class sets the max-width of an element to match the min-width of the current breakpoint. This is useful if you’d prefer to design for a fixed set of screen sizes instead of trying to accommodate a fully fluid viewport." end end |
#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/container/preview.rb', line 7 def default irelia_container size: :lg do "The container class sets the max-width of an element to match the min-width of the current breakpoint. This is useful if you’d prefer to design for a fixed set of screen sizes instead of trying to accommodate a fully fluid viewport." end end |