UNPKG

@klnjs/react-icon

Version:

An icon component for React.

9 lines (8 loc) 402 B
import { jsx as _jsx } from "react/jsx-runtime"; import { forwardRef, useId } from '@klnjs/react-core'; import { useIconContext } from './IconContext'; export const IconTitle = forwardRef(({ id: idProp, ...otherProps }, forwardedRef) => { const { setLabelId } = useIconContext(); const id = useId(idProp, setLabelId); return _jsx("title", { id: id, ref: forwardedRef, ...otherProps }); });