blob: 63a24991a07e5e47a3d3dfd96e0dd1118e98eea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import {
forwardRef,
type ForwardRefRenderFunction,
type HTMLAttributes,
} from 'react';
export type SectionProps = HTMLAttributes<HTMLElement>;
const SectionWithRef: ForwardRefRenderFunction<HTMLElement, SectionProps> = (
{ children, ...props },
ref
) => (
<section {...props} ref={ref}>
{children}
</section>
);
/**
* Section component
*
* Render a section element with a heading and a body.
*/
export const Section = forwardRef(SectionWithRef);
|