Update Input.mdx (#26226)
* Update Input.mdx
clarify form validation text
* Update packages/grafana-ui/src/components/Input/Input.mdx
Align with textArea
Co-authored-by: Peter Holmberg <peterholmberg@users.noreply.github.com>
Co-authored-by: Peter Holmberg <peterholmberg@users.noreply.github.com>
Co-authored-by: Clarity-89 <homes89@ukr.net>
(cherry picked from commit b01a64e146)
This commit is contained in:
committed by
Hugo Häggmark
parent
2c6020a57a
commit
109754eeb4
@@ -21,7 +21,7 @@ To add more context to the input you can add either text or an icon before or af
|
||||
|
||||
## Usage in forms with Field
|
||||
|
||||
`Input` should be used with the `Field` component to get labels and descriptions. It should also be used for validation. See the `Field` component for more information.
|
||||
`Input` should be used with the `Field` component to get labels and descriptions. It can also be used for validation by using the `required` attribute. See the `Field` component for more information.
|
||||
|
||||
```jsx
|
||||
<Field label="Important information" description="This information is very important, so you really need to fill it in">
|
||||
|
||||
Reference in New Issue
Block a user