import type { ElementType } from "react"; import type { GroupOptions } from "../group/group.tsx"; import type { Props } from "../utils/types.ts"; import type { FormStore } from "./form-store.ts"; declare const TagName = "div"; type TagName = typeof TagName; /** * Returns props to create a `FormGroup` component. * @see https://ariakit.com/components/form * @example * ```jsx * const store = useFormStore(); * const props = useFormGroup({ store }); *
* * Label * *
* ``` */ export declare const useFormGroup: import("../utils/types.ts").Hook<"div", FormGroupOptions<"div">>; /** * Renders a group element for form controls. The * [`FormGroupLabel`](https://ariakit.com/reference/form-group-label) component * can be used inside this component so the `aria-labelledby` prop is properly * set on the group element. * @see https://ariakit.com/components/form * @example * ```jsx {9-15} * const form = useFormStore({ * defaultValues: { * username: "", * email: "", * }, * }); * *
* * Account * Username * * Email * * *
* ``` */ export declare const FormGroup: (props: FormGroupProps) => import("react").ReactElement>; export interface FormGroupOptions extends GroupOptions { /** * Object returned by the * [`useFormStore`](https://ariakit.com/reference/use-form-store) hook. If not * provided, the closest [`Form`](https://ariakit.com/reference/form) or * [`FormProvider`](https://ariakit.com/reference/form-provider) components' * context will be used. */ store?: FormStore; } export type FormGroupProps = Props>; export {};