@blueprintjs/core
Version:
Core styles & components
27 lines (18 loc) • 749 B
Markdown
@
Form groups support more complex form controls than [simple labels](
such as [control groups](
They also support additional helper text to aid with user navigation.
@
```tsx
import { FormGroup } from "@blueprintjs/core";
```
@reactExample FormGroupExample
@
This component is a lightweight wrapper around its children with props for the
label above and helper text below.
```tsx
<FormGroup helperText="Helper text with details..." label="Label A" labelFor="text-input" labelInfo="(required)">
<InputGroup id="text-input" placeholder="Placeholder text" />
</FormGroup>
```
@interface FormGroupProps