ColorInput

An input field that let the user specify a color , either with a text field or a color picker interface


Provides a wrapper for Phoenix.HTML.Form's color_input/3 function.

All options passed via opts will be sent to color_input/3 , value and class can be set directly and will override anything in opts .



<Field name="color">
  <Label>Choose a color:</Label>
  <ColorInput value="#3298dc"/>
</Field>

# Public API

Name Description Type Values Default
opts Options list.

:keyword []
class Class or classes to apply to the input.

:css_class
value Value to pre-populated the input.

:string
field An identifier for the input.

:string
form An identifier for the form.

:form