@apcrda/ui 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FormFieldProps } from './FormField.types';
|
|
2
|
+
export declare function FormField({ label, htmlFor, required, hint, error, className, children, ...props }: FormFieldProps): import("react").JSX.Element;
|
|
3
|
+
export declare namespace FormField {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
readonly label?: string;
|
|
4
|
+
readonly htmlFor?: string;
|
|
5
|
+
readonly required?: boolean;
|
|
6
|
+
readonly hint?: string;
|
|
7
|
+
readonly error?: string;
|
|
8
|
+
readonly children?: ReactNode;
|
|
9
|
+
}
|