@ozen-ui/kit
Version:
React component library
14 lines (13 loc) • 943 B
TypeScript
import './FieldControl.css';
import type { ElementType, ComponentRef } from 'react';
import { type PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphicComponentWithRef';
import type { FieldControlContextValue } from './index';
export declare const FIELD_CONTROL_DEFAULT_TAG = "div";
export type FieldControlRef = ComponentRef<typeof FIELD_CONTROL_DEFAULT_TAG>;
export type FieldControlBaseProps = Omit<FieldControlContextValue, 'label'> & {
/** data-атрибут для тестирования */
'data-testid'?: string;
};
export type FieldControlProps<As extends ElementType = typeof FIELD_CONTROL_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<FieldControlBaseProps, As>;
export declare const cnFieldControl: import("@bem-react/classname").ClassNameFormatter;
export declare const FieldControl: import("../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<FieldControlBaseProps, "div", "as">;