fs-walle-react-ts/src/LexInputComponents.tsx

23 lines
511 B
TypeScript
Raw Normal View History

2017-06-21 12:37:48 +00:00
import * as React from 'react';
const { Box } = require('reflexbox');
export class LexSingleInput extends React.Component<any, any> {
public render() {
return (
<div className="pt-form-group pt-inline">
<Box w={2 / 5}>
<label
style={{ textAlign: 'right' }}
className="pt-label"
>
{this.props.labelText}
</label>
</Box>
<Box w={3 / 5}>
{this.props.children}
</Box>
</div>
);
}
}