"use strict";

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

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

var _propTypes = require("../../utils/propTypes");

var doc = function doc(Title) {
  var DocumentedTitle = (0, _reactDesc.describe)(Title).description('A title component').usage("import { Title } from '@dragonchain-dev/dragon-kit'\n      \n<Title>This is a title</Title>");
  DocumentedTitle.propTypes = {
    tag: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Title').tags).description('HTML tag of the title').defaultValue('h2'),
    color: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Title').colors).description('Title color'),
    size: _reactDesc.PropTypes.oneOf((0, _propTypes.propTypes)('Title').size).description('Title size').defaultValue('small'),
    children: _reactDesc.PropTypes.node.description('Title body').isRequired
  };
  return DocumentedTitle;
};

exports.doc = doc;