@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
24 lines (23 loc) • 913 B
TypeScript
import { ReactNode } from "react";
import type { PropsFor } from "../../types.js";
export type FieldGroupState = FieldGroupProps["state"];
export type FieldGroupProps = PropsFor<"div", {
/** Label text */
label?: ReactNode;
/** Description text to show more information */
description?: ReactNode;
/** Feedback text below the input field */
feedback?: ReactNode;
/** Available states: `"default"` and `"alert"` */
state?: "default" | "alert";
/** Display "(required)" after label text */
required?: boolean;
/** Display "(optional)" after label text */
optional?: boolean;
/** Disables the input field */
disabled?: boolean;
/** Makes the input field read-only */
readOnly?: boolean;
}>;
declare const FieldGroup: import("react").ForwardRefExoticComponent<FieldGroupProps & import("react").RefAttributes<HTMLDivElement>>;
export default FieldGroup;