-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy pathItem.jsx
39 lines (36 loc) · 882 Bytes
/
Item.jsx
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
31
32
33
34
35
36
37
38
39
import React from 'react'
import PropTypes from 'prop-types'
import EmailPropTypes from '../PropTypes'
import includeDataProps from '../includeDataProps'
export default function Item(props) {
return (
<tr>
<td
{...includeDataProps(props)}
className={props.className}
align={props.align}
valign={props.valign}
bgcolor={props.bgcolor}
style={props.style}
>
{props.children}
</td>
</tr>
)
}
Item.propTypes = {
className: PropTypes.string,
bgcolor: PropTypes.string,
align: PropTypes.oneOf(['left', 'center', 'right']),
valign: PropTypes.oneOf(['top', 'middle', 'bottom']),
style: EmailPropTypes.style,
children: PropTypes.node,
}
Item.defaultProps = {
className: undefined,
bgcolor: undefined,
align: undefined,
valign: undefined,
style: undefined,
children: undefined,
}