1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/frontend/src/Components/FieldSet.js
Mark McDowall 5894b4fd95 v3 UI
2018-12-29 13:08:43 +01:00

34 lines
581 B
JavaScript

import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './FieldSet.css';
class FieldSet extends Component {
//
// Render
render() {
const {
legend,
children
} = this.props;
return (
<fieldset className={styles.fieldSet}>
<legend className={styles.legend}>
{legend}
</legend>
{children}
</fieldset>
);
}
}
FieldSet.propTypes = {
legend: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
children: PropTypes.node
};
export default FieldSet;