UNPKG

@i-novus/ui-core

Version:

Базовые UI компоненты

12 lines (11 loc) 573 B
import { jsx as _jsx } from "react/jsx-runtime"; import { forwardRef } from 'react'; import classNames from 'classnames'; import { useConfigProvider } from '../../core'; import { TypographyBody } from './Typography'; export const Paragraph = forwardRef((props, ref) => { const { tag = 'p', prefix, className, ...restProps } = props; const { getPrefix } = useConfigProvider(); const prefixCls = getPrefix(prefix); return (_jsx(TypographyBody, { tag: tag, ref: ref, className: classNames(className, `${prefixCls}-typography-paragraph`), ...restProps })); });