"use strict";

exports.__esModule = true;
exports.doc = void 0;

var _reactDesc = require("react-desc");

var doc = function doc(Input) {
  var DocumentedInput = (0, _reactDesc.describe)(Input).description('An input component for use with react-hook-forms. REQUIRED: react-hook-forms').usage("import { Input } from '@dragonchain-dev/dragon-kit'\n      \n<Input required type=\"email\" name=\"email\" placeholder=\"Email...\" />");
  DocumentedInput.propTypes = {
    name: _reactDesc.PropTypes.string.description('Name of the input').isRequired,
    placeholder: _reactDesc.PropTypes.string.description('Placeholder before value is entered').isRequired,
    required: _reactDesc.PropTypes.bool.description('Is the input required for the form to submit').defaultValue(false),
    type: _reactDesc.PropTypes.oneOf(['text', 'email']).description('Type of data to be entered').defaultValue('text')
  };
  return DocumentedInput;
};

exports.doc = doc;