rsuite
Version:
A suite of react components
15 lines (14 loc) • 552 B
TypeScript
import React from 'react';
import { WithAsProps, RsRefForwardingComponent } from '../@types/common';
export interface FormGroupProps extends WithAsProps {
/**
* Sets id on `<Form.Control>` and `htmlFor` on `<Form.ControlLabel>`.
* And generate ʻaria-labelledby` and ʻaria-describedby` for `<Form.Control>`.
*/
controlId?: string;
}
export declare const FormGroupContext: React.Context<{
controlId?: string | undefined;
}>;
declare const FormGroup: RsRefForwardingComponent<'div', FormGroupProps>;
export default FormGroup;