import { forwardRef, type ForwardRefRenderFunction, type HTMLAttributes, } from 'react'; import styles from './description-list.module.scss'; export type TermProps = HTMLAttributes; const TermWithRef: ForwardRefRenderFunction = ( { children, className = '', ...props }, ref ) => { const termClass = `${styles.term} ${className}`; return (
{children}
); }; /** * Term component. * * Use it inside a `DescriptionList` or a `Group` component. */ export const Term = forwardRef(TermWithRef);