docs(input): add type description (#794)

Co-authored-by: Haytham A. Salama <haythamasalama@gmail.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Sma11X
2023-10-12 20:48:37 +08:00
committed by GitHub
parent 7a48e8c45d
commit 3ae78aadee

View File

@@ -72,6 +72,21 @@ props:
---
::
### Type
Use the `type` prop to change the input type, the default `type` is set to `text`, you can check all the available types at [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types).
We have improved the implementation of certain types such as [Checkbox](/forms/checkbox), [Radio](/forms/radio), etc.
::component-card
---
baseProps:
name: 'input'
props:
type: 'password'
---
::
### Placeholder
Use the `placeholder` prop to set a placeholder text.