Class: AvatarComponentPreview

Inherits:
ViewComponent::Preview
  • Object
show all
Defined in:
lib/alveole/previews/avatar_component_preview.rb

Instance Method Summary collapse

Instance Method Details

#defaultObject



4
5
6
# File 'lib/alveole/previews/avatar_component_preview.rb', line 4

def default
  render(AvatarComponent.new(image: '/example/image', url: '/example/url'))
end

#without_urlObject



8
9
10
# File 'lib/alveole/previews/avatar_component_preview.rb', line 8

def without_url
  render(AvatarComponent.new(image: '/example/image'))
end