     </form>
 
   # -- Extends
+  storage: (value) ->
+    key = "react-toolbox-form-#{@props.storage}"
+    if value
+      store = {}
+      store[attr.ref] = value[attr.ref] for attr in @props.attributes when attr.storage
+      window.localStorage.setItem key, JSON.stringify store
+    else
+      store = JSON.parse window.localStorage.getItem key or {}
+      input.value = store?[input.ref] or input.value for input in @props.attributes
+      @props.attributes
+
   getValue: ->
     value = {}
     value[ref] = el.getValue() for ref, el of @refs when el.getValue?


  getDefaultProps: ->
    attributes        : []
    storage           : false

  getInitialState: ->
    attributes        : @props.attributes

  # -- Events
  onSubmit: (event) ->

@todo
###

Style         = require './style/form'
Autocomplete  = require "./autocomplete"
Button        = require "./button"
Input         = require "./input"

module.exports = React.createClass

  # -- States & Properties
  propTypes:
    attributes        : React.PropTypes.array
    storage           : React.PropTypes.string
    className         : React.PropTypes.string
    # -- Events
    onSubmit          : React.PropTypes.func
    onError           : React.PropTypes.func
