-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
30 lines (27 loc) · 695 Bytes
/
App.tsx
File metadata and controls
30 lines (27 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React from 'react';
import { Button, Input, Form } from '../lib';
const App: React.FC = () => {
return (
<>
<MyGridForm />
</>
)
}
const MyGridForm: React.FC = () => {
return (
<Form>
<Input
id='name_input' placeholder='John Doe' label='Name'
required aria-required='true' aria-autocomplete='none'
minLength={3} maxLength={64} pattern='[a-zA-Z ]*'
/>
<Input
id='age_input' type='number' label='Your Age'
required aria-required='true' min={1} max={125}
minLength={1} maxLength={3} pattern="[0-9]{1,3}"
/>
<Button type='submit'>My Button</Button>
</Form>
)
}
export default App