File size: 396 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import clsx from 'clsx';
import * as React from 'react';
type FormLegendProps = {
className?: string;
children: React.ReactNode;
} & React.HTMLAttributes< HTMLLegendElement >;
const FormLegend = ( { className, children, ...otherProps }: FormLegendProps ) => (
<legend { ...otherProps } className={ clsx( className, 'form-legend' ) }>
{ children }
</legend>
);
export default FormLegend;
|