2
2
title : Keyboard
3
3
---
4
4
5
- import Codepen from '@components/global /Codepen';
6
5
import Tabs from '@theme/Tabs ';
7
6
import TabItem from '@theme/TabItem ';
8
7
@@ -28,77 +27,9 @@ For a list of accepted values, see the <a href="https://developer.mozilla.org/en
28
27
29
28
### Usage
30
29
31
- ```` mdx-code-block
32
- <Tabs
33
- defaultValue="javascript"
34
- groupId="framework"
35
- values={[
36
- { value: 'javascript', label: 'JavaScript' },
37
- { value: 'angular', label: 'Angular' },
38
- { value: 'react', label: 'React' },
39
- { value: 'vue', label: 'Vue' },
40
- ]
41
- }>
42
- <TabItem value="javascript">
43
-
44
- ```html
45
- <ion-item>
46
- <ion-label>Username or Email</ion-label>
47
- <ion-input inputmode="email"></ion-input>
48
- </ion-item>
49
-
50
- <ion-item>
51
- <ion-label>Enter a number</ion-label>
52
- <ion-textarea inputmode="numeric"></ion-textarea>
53
- </ion-item>
54
- ```
55
- </TabItem>
56
- <TabItem value="angular">
57
-
58
- ```html
59
- <ion-item>
60
- <ion-label>Username or Email</ion-label>
61
- <ion-input inputmode="email"></ion-input>
62
- </ion-item>
63
-
64
- <ion-item>
65
- <ion-label>Enter a number</ion-label>
66
- <ion-textarea inputmode="numeric"></ion-textarea>
67
- </ion-item>
68
- ```
69
- </TabItem>
70
- <TabItem value="react">
71
-
72
- ```html
73
- <IonItem>
74
- <IonLabel>Username or Email</IonLabel>
75
- <IonInput inputmode="email"></IonInput>
76
- </IonItem>
77
-
78
- <IonItem>
79
- <IonLabel>Enter a number</IonLabel>
80
- <IonTextarea inputmode="numeric"></IonTextarea>
81
- </IonItem>
82
- ```
83
- </TabItem>
84
- <TabItem value="vue">
85
-
86
- ```html
87
- <ion-item>
88
- <ion-label>Username or Email</ion-label>
89
- <ion-input inputmode="email"></ion-input>
90
- </ion-item>
91
-
92
- <ion-item>
93
- <ion-label>Enter a number</ion-label>
94
- <ion-textarea inputmode="numeric"></ion-textarea>
95
- </ion-item>
96
- ```
97
- </TabItem>
98
- </Tabs>
99
- ````
30
+ import Inputmode from '@site/static /usage/v7/keyboard/inputmode/index.md';
100
31
101
- <Codepen user = " ionic " slug = " abvJVVv " height = " 400 " />
32
+ <Inputmode />
102
33
103
34
::: note
104
35
The ` inputmode ` attribute is supported on devices running Chrome 66+ and iOS Safari 12.2+: https://caniuse.com/#search=inputmode
@@ -114,57 +45,9 @@ For a list of accepted values, see the <a href="https://html.spec.whatwg.org/dev
114
45
115
46
### Usage
116
47
117
- ```` mdx-code-block
118
- <Tabs
119
- groupId="framework"
120
- defaultValue="javascript"
121
- values={[
122
- { value: 'javascript', label: 'JavaScript' },
123
- { value: 'angular', label: 'Angular' },
124
- { value: 'react', label: 'React' },
125
- { value: 'vue', label: 'Vue' },
126
- ]
127
- }>
128
- <TabItem value="javascript">
129
-
130
- ```html
131
- <ion-item>
132
- <ion-label>Enter search query</ion-label>
133
- <ion-input enterkeyhint="search" type="search"></ion-input>
134
- </ion-item>
135
- ```
136
- </TabItem>
137
- <TabItem value="angular">
138
-
139
- ```html
140
- <ion-item>
141
- <ion-label>Enter search query</ion-label>
142
- <ion-input enterkeyhint="search" type="search"></ion-input>
143
- </ion-item>
144
- ```
145
- </TabItem>
146
- <TabItem value="react">
147
-
148
- ```html
149
- <IonItem>
150
- <IonLabel>Enter search query</IonLabel>
151
- <IonInput enterkeyhint="search" type="search"></IonInput>
152
- </IonItem>
153
- ```
154
- </TabItem>
155
- <TabItem value="vue">
156
-
157
- ```html
158
- <ion-item>
159
- <ion-label>Enter search query</ion-label>
160
- <ion-input enterkeyhint="search" type="search"></ion-input>
161
- </ion-item>
162
- ```
163
- </TabItem>
164
- </Tabs>
165
- ````
48
+ import Enterkeyhint from '@site/static /usage/v7/keyboard/enterkeyhint/index.md';
166
49
167
- <Codepen user = " ionic " slug = " GRpWyRB " height = " 350 " />
50
+ <Enterkeyhint />
168
51
169
52
::: note
170
53
The ` enterkeyhint ` attribute is supported on devices running Chrome 77+ and iOS Safari 13.4+.
0 commit comments