import * as PropTypes from 'prop-types'; import * as React from 'react'; import { Popup } from '@fluentui/react-northstar'; export default class ComponentPropName extends React.PureComponent { static propTypes = { name: PropTypes.string, required: PropTypes.bool, slot: PropTypes.bool, }; render() { const { name, required, slot } = this.props; const slotStyle: React.CSSProperties = { color: 'blue', fontWeight: 'bold', }; return (
{name} {required && ( *} /> )} {slot && (  S } /> )}
); } }