File size: 695 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import clsx from 'clsx';

import './style.scss';
/**
 * Render a form section heading
 * @param {Object} props Component props
 * @param {string=} props.className optional extra CSS class(es) to be added to the component
 * @param {import('react').ReactNode=} props.children react element props that must contain some children
 * @param {Object=} props.otherProps react element props that must contain some children
 * @returns {import('react').ReactElement} React component
 */
const FormSectionHeading = ( { className, children, ...otherProps } ) => (
	<h3 { ...otherProps } className={ clsx( className, 'form-section-heading' ) }>
		{ children }
	</h3>
);

export default FormSectionHeading;