2017-06-21 12:37:48 +00:00
|
|
|
import * as React from 'react';
|
2017-06-22 11:34:06 +00:00
|
|
|
import { Label, Form } from 'semantic-ui-react';
|
|
|
|
|
const { Flex, Box } = require('reflexbox');
|
2017-06-21 12:37:48 +00:00
|
|
|
|
|
|
|
|
export class LexSingleInput extends React.Component<any, any> {
|
|
|
|
|
public render() {
|
|
|
|
|
return (
|
2017-06-22 11:34:06 +00:00
|
|
|
<div>
|
|
|
|
|
<Form>
|
|
|
|
|
<Form.Group as={Flex} inline={true} style={{ margin: '0 0 5px 5px' }}>
|
|
|
|
|
<Form.Field as={Box} w={2 / 5} style={{ textAlign: 'right' }}>
|
|
|
|
|
<Label
|
|
|
|
|
pointing="right"
|
|
|
|
|
>
|
|
|
|
|
{this.props.labelText}
|
|
|
|
|
</Label>
|
|
|
|
|
</Form.Field>
|
|
|
|
|
<Form.Field as={Box} w={3 / 5} >
|
|
|
|
|
{this.props.children}
|
|
|
|
|
</Form.Field>
|
|
|
|
|
</Form.Group>
|
|
|
|
|
</Form>
|
2017-06-21 12:37:48 +00:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|