@freecodecamp/ui
Version:
The freeCodeCamp.org open-source UI components
6 lines (5 loc) • 344 B
TypeScript
import React from "react";
import { FormGroupProps } from "./types";
export type FormContextProps = Pick<FormGroupProps, "controlId" | "validationState">;
export declare const FormContext: React.Context<FormContextProps>;
export declare const FormGroup: ({ className, validationState, controlId, as, ...props }: FormGroupProps) => JSX.Element;