UNPKG

@ozen-ui/kit

Version:

React component library

13 lines (12 loc) 811 B
import './FormTitle.css'; import type { ElementType } from 'react'; import type { FormElementSizeVariant } from '../../types/FormElementSizeVariant'; import { type PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphicComponentWithRef'; export type FormTitleBaseProps = { /** Размер — влияет на размер шрифта и отступы заголовка */ size?: FormElementSizeVariant; 'data-testid'?: string; }; export type FormTitleProps<As extends ElementType = 'div'> = PolymorphicComponentPropsWithoutRef<FormTitleBaseProps, As>; export declare const cnFormTitle: import("@bem-react/classname").ClassNameFormatter; export declare const FormTitle: import("../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<FormTitleBaseProps, "div", "as">;