UNPKG

1.98 kBTypeScriptView Raw
1import type { Assign } from "@ark-ui/react";
2import { Field as ArkField } from "@ark-ui/react/field";
3import { type HTMLChakraProps, type SlotRecipeProps, type UnstyledProp } from "../../styled-system";
4declare const useFieldStyles: () => Record<string, import("../..").SystemStyleObject>;
5export { useFieldStyles };
6export interface FieldRootBaseProps extends Assign<ArkField.RootBaseProps, SlotRecipeProps<"field">>, UnstyledProp {
7}
8export interface FieldRootProps extends HTMLChakraProps<"div", FieldRootBaseProps> {
9}
10export declare const FieldRoot: import("react").ForwardRefExoticComponent<FieldRootProps & import("react").RefAttributes<HTMLDivElement>>;
11export declare const FieldPropsProvider: React.Provider<FieldRootBaseProps>;
12export interface FieldLabelProps extends HTMLChakraProps<"label", ArkField.LabelBaseProps> {
13}
14export declare const FieldLabel: import("react").ForwardRefExoticComponent<FieldLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
15export interface FieldHelperTextProps extends HTMLChakraProps<"div", ArkField.HelperTextBaseProps> {
16}
17export declare const FieldHelperText: import("react").ForwardRefExoticComponent<FieldHelperTextProps & import("react").RefAttributes<HTMLDivElement>>;
18export interface FieldErrorTextProps extends HTMLChakraProps<"div", ArkField.ErrorTextBaseProps> {
19}
20export declare const FieldErrorText: import("react").ForwardRefExoticComponent<FieldErrorTextProps & import("react").RefAttributes<HTMLDivElement>>;
21export interface FieldErrorIconProps extends HTMLChakraProps<"svg"> {
22}
23export declare const FieldErrorIcon: import("react").ForwardRefExoticComponent<import("..").IconProps & import("react").RefAttributes<SVGSVGElement>>;
24export interface FieldRequiredIndicatorProps extends HTMLChakraProps<"span"> {
25 fallback?: React.ReactNode;
26}
27export declare const FieldRequiredIndicator: import("react").ForwardRefExoticComponent<FieldRequiredIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;