Class: Uistiti::Alpha::ContainerPreview

Inherits:
ViewComponent::Preview
  • Object
show all
Defined in:
app/components/previews/uistiti/alpha/container_preview.rb

Instance Method Summary collapse

Instance Method Details

#playgroundObject

This composent restrict the content horizontaly, on small screens it applyes a padding-inline of 1rem and on large screens it applkies a padding-iline of 3rem



11
12
13
# File 'app/components/previews/uistiti/alpha/container_preview.rb', line 11

def playground
  render(Uistiti::Alpha::Container.new.with_content('Content of the container'))
end