Class: Irelia::Card::Preview

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

Instance Method Summary collapse

Instance Method Details

#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/card/preview.rb', line 7

def default
  irelia_card do
    "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales fermentum tristique."
  end
end

#no_paddingObject



13
14
15
16
17
# File 'app/components/irelia/card/preview.rb', line 13

def no_padding
  irelia_card(padding: false) do
    "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales fermentum tristique."
  end
end