@ozen-ui/kit
Version:
React component library
18 lines (17 loc) • 972 B
TypeScript
import './FieldIcon.css';
import type { ComponentRef } from 'react';
import React from 'react';
import type { IconProps } from '@ozen-ui/icons';
import type { ExtendableComponentPropsWithRef } from '../../types/ExtendableComponentPropsWithRef';
import type { FormElementSizeVariant } from '../../types/FormElementSizeVariant';
import type { RenderContentType } from '../../utils/renderContent';
export declare const FIELD_ICON_DEFAULT_TAG = "div";
export type FieldIconRef = ComponentRef<typeof FIELD_ICON_DEFAULT_TAG>;
export type FieldIconProps = ExtendableComponentPropsWithRef<{
icon?: RenderContentType<IconProps>['content'];
size?: FormElementSizeVariant;
children?: never;
'data-testid'?: string;
}, typeof FIELD_ICON_DEFAULT_TAG>;
export declare const cnFieldIcon: import("@bem-react/classname").ClassNameFormatter;
export declare const FieldIcon: React.ForwardRefExoticComponent<Omit<FieldIconProps, "ref"> & React.RefAttributes<HTMLDivElement>>;