Added input component
This commit is contained in:
parent
6bae38e1ca
commit
dd214ebdd9
2 changed files with 40 additions and 0 deletions
16
src/components/Input/Input.tsx
Normal file
16
src/components/Input/Input.tsx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import Input from '../../../fwt/components/Input/Input'
|
||||
import { createSignal } from 'solid-js'
|
||||
import Column from '../../../fwt/components/Column/Column'
|
||||
|
||||
const [sample, setSample] = createSignal('')
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<>
|
||||
<Column content="center">
|
||||
<Input onChange={(val) => setSample(val)}></Input>
|
||||
<span>{sample()}</span>
|
||||
</Column>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue