Class: BleedComponentPreview

Inherits:
ViewComponent::Preview
  • Object
show all
Defined in:
lib/cubit_components/previews/bleed_component_preview.rb

Instance Method Summary collapse

Instance Method Details

#defaultObject



2
3
4
5
6
# File 'lib/cubit_components/previews/bleed_component_preview.rb', line 2

def default
  render(CubitComponents::BleedComponent.new(vattrs: ["-m-3"])) do
    tag.div("Bleed Content", class: "bg-gray-100 p-4")
  end
end

#responsiveObject



8
9
10
11
12
# File 'lib/cubit_components/previews/bleed_component_preview.rb', line 8

def responsive
  render(CubitComponents::BleedComponent.new(vattrs: ["sm:-mx-2", "md:-m-4"])) do
    tag.div("Responsive Bleed Content", class: "bg-blue-100 p-4")
  end
end