mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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>
This commit is contained in:
parent
1a5c049883
commit
b01a64e146
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user