Skip to content

Commit

Permalink
fixup! fixup! fixup! Feat(web-react): ReactNode type for labels #DS-1632
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelklibani committed Jan 23, 2025
1 parent 3091cd9 commit 05bef22
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/web-react/src/components/Field/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,13 @@ When displaying text dynamically, set [`role="alert"`][aria-alert-role] on the `
The HelperText subcomponent displays helper texts for Field components like TextField, TextArea, Checkbox, FileUploader, etc.

```jsx
<HelperText
className="Component__helperText"
helperText="Helper text"
/>
<HelperText className="Component__helperText" helperText="Helper text" />
```

Advanced example:

```jsx
<HelperText
id="component__helperText"
className="Component__helperText"
elementType="span"
helperText="Helper text"
/>
<HelperText id="component__helperText" className="Component__helperText" elementType="span" helperText="Helper text" />
```

### API
Expand Down

0 comments on commit 05bef22

Please sign in to comment.