zepio/app/components/transaction-item.mdx

45 lines
815 B
Plaintext
Raw Normal View History

2018-12-12 13:14:58 -08:00
---
name: Transaction Item
---
import { Playground, PropsTable } from 'docz'
import { TransactionItemComponent } from './transaction-item.js'
import { DoczWrapper } from '../theme.js'
# Transaction Item
## Properties
2018-12-12 13:14:58 -08:00
<PropsTable of={TransactionItemComponent} />
## Sent
<Playground>
<DoczWrapper>
{() => (
<TransactionItemComponent
type='sent'
address='123456789123456789123456789123456789'
2018-12-12 13:14:58 -08:00
amount={0.8652}
date={new Date().toISOString()}
/>
)}
</DoczWrapper>
</Playground>
## Received
<Playground>
<DoczWrapper>
{() => (
<TransactionItemComponent
type='received'
address='123456789123456789123456789123456789'
2018-12-12 13:14:58 -08:00
amount={1.7891}
date={new Date().toISOString()}
/>
)}
</DoczWrapper>
</Playground>