Create a regular input to control parameters in your queries
param
prop to specify the name of the parameter you want to control. param
is mandatory so if you don’t include it the app will return an error.
name
parameter. If you load the page with the name
parameter already in the URL, you will see the value from the URL in the input. You can also provide a default value for the input by using the value
prop.
If you load the page without the name
parameter in the URL, the input will be set to the default value. If you load the page with a different value for the name
parameter in the URL, the input will be set to that value.
type
prop. This works with the type
attribute of the <input>
element in HTML. You can use this to specify that the input should be a number
, email
, tel
(phone number), time
, etc.
age
parameter.
Input
component accepts the following props: