Class: Uistiti::Alpha::ContainerPreview
- Inherits:
-
ViewComponent::Preview
- Object
- ViewComponent::Preview
- Uistiti::Alpha::ContainerPreview
- Defined in:
- app/components/previews/uistiti/alpha/container_preview.rb
Instance Method Summary collapse
-
#playground ⇒ Object
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.
Instance Method Details
#playground ⇒ Object
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 |