Class: Uistiti::Alpha::LinkPreview

Inherits:
ViewComponent::Preview
  • Object
show all
Defined in:
app/components/previews/uistiti/alpha/link_preview.rb

Instance Method Summary collapse

Instance Method Details

#playground(path: 'some value', method: :get, color: :base) ⇒ Object

Parameters:

  • path (defaults to: 'some value')
  • method (defaults to: :get)

    select [get, delete]

  • color (defaults to: :base)

    select [base, inverse-base, primary, secondary]



14
15
16
# File 'app/components/previews/uistiti/alpha/link_preview.rb', line 14

def playground(path: 'some value', method: :get, color: :base)
  render(Uistiti::Alpha::Link.new(path:, method:, color:).with_content('Link'))
end