Class: Irelia::Container::Preview

Inherits:
Irelia::ComponentPreview
  • Object
show all
Defined in:
app/components/irelia/container/preview.rb

Instance Method Summary collapse

Instance Method Details

#centeredObject



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

#defaultObject

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