Sha256: c2594736ad8220dedd7f8d0eb507645a01265e9f39038c3bf80715ef709263dd

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

class BreadcrumbComponentPreview < ViewComponent::Preview
  layout false

  def default
    render(BreadcrumbComponent.new(label: 'Example Breadcrumb', url: '/example/url'))
  end

  def without_url
    render(BreadcrumbComponent.new(label: 'Example Breadcrumb'))
  end

  def breadcrumbs
    render(BreadcrumbsComponent.new)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alveole-0.0.1 lib/alveole/previews/breadcrumb_component_preview.rb