wix-style-react
Version:
25 lines (18 loc) • 601 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
class Tab extends React.PureComponent {
static propTypes = {
/** Specifies an unique id for a tab button. Use it to differentiate between tabs */
id: PropTypes.string.isRequired,
/** Renders any content inside of a tab. */
children: PropTypes.node.isRequired,
/** Defines the title of the tab. */
name: PropTypes.node.isRequired,
/** Specifies whether the tab button is disabled. */
disabled: PropTypes.bool,
};
render() {
return <div>{this.props.children}</div>;
}
}
export default Tab;