UNPKG

@utahdts/utah-design-system

Version:
24 lines (22 loc) 508 B
import { joinClassNames } from '../../../util/joinClassNames'; /** * @param {object} props * @param {import('react').ReactNode} props.children * @param {string} [props.className] * @param {string} props.id Make sure to match the ariaLabelledBy of the modal * @returns {import('react').JSX.Element} */ export function ModalTitle({ children, className, id, }) { return ( <div className={joinClassNames('modal__title', className)} id={id} > {children} </div> ); }