zepio/app/components/input.mdx

44 lines
673 B
Plaintext
Raw Normal View History

2018-12-06 07:42:30 -08:00
---
name: Input
---
import { Playground, PropsTable } from 'docz'
import { InputComponent } from './input.js'
import { DoczWrapper } from '../theme.js'
# Input
## Properties
2018-12-06 07:42:30 -08:00
<PropsTable of={InputComponent} />
## Text Input
<Playground>
2018-12-15 13:28:36 -08:00
<DoczWrapper>
{() => (
<InputComponent
inputType='input'
value='Hello World!'
onChange={console.log}
/>
)}
2018-12-15 13:28:36 -08:00
</DoczWrapper>
2018-12-06 07:42:30 -08:00
</Playground>
## Textarea
<Playground>
<DoczWrapper>
2018-12-15 13:28:36 -08:00
{() => (
<InputComponent
inputType='textarea'
value='I am Zcash Electron Wallet'
2018-12-15 13:28:36 -08:00
onChange={console.log}
rows={10}
/>
)}
</DoczWrapper>
2018-12-06 07:42:30 -08:00
</Playground>