UNPKG

@klnjs/react-icon

Version:

An icon component for React.

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