23 lines
511 B
TypeScript
23 lines
511 B
TypeScript
|
|
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>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|