Class: InputPreview

Inherits:
Lookbook::Preview
  • Object
show all
Defined in:
lib/lookbook/input_preview.rb

Instance Method Summary collapse

Instance Method Details

#default(label: 'Input', disabled: false, required: false, style: 'filled') ⇒ Object

Parameters:

  • label (defaults to: 'Input')

    text

  • disabled (defaults to: false)

    toggle

  • required (defaults to: false)

    toggle

  • style (defaults to: 'filled')

    select { choices: [filled, outlined] }



7
8
9
# File 'lib/lookbook/input_preview.rb', line 7

def default(label: 'Input', disabled: false, required: false, style: 'filled')
  render 'common/form', helper_name: 'material_input', label: label, name: 'checkbox', id: 'Input', disabled: disabled, required: required, style: style
end