File size: 517 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import clsx from 'clsx';
import { forwardRef } from 'react';
import './style.scss';
const FormSettingExplanation = forwardRef<
HTMLParagraphElement,
{ children: React.ReactNode; className?: string; isIndented?: boolean }
>( ( { children, className = '', isIndented = false }, forwardedRef ) => {
return (
<p
className={ clsx( 'form-setting-explanation', className, {
'is-indented': isIndented,
} ) }
ref={ forwardedRef }
>
{ children }
</p>
);
} );
export default FormSettingExplanation;
|