]> git.wincent.com - hextrapolate.git/blob - src/Label.react.js
377a4521a1bf15a10d99f0d2dab1746ff2b4ec06
[hextrapolate.git] / src / Label.react.js
1 /**
2  * Copyright 2003-present Greg Hurrell. All rights reserved.
3  * Licensed under the terms of the MIT license.
4  *
5  * @flow
6  */
7
8 'use strict';
9
10 import React from 'react';
11
12 export default class Label extends React.Component {
13   static propTypes = {
14     text: React.PropTypes.string.required,
15   };
16
17   render() {
18     return (
19       <label className="hextrapolate-row">
20         <span className="hextrapolate-base">
21           {this.props.text}
22         </span>
23         {this.props.children}
24       </label>
25     );
26   }
27 }