PromucFlow_constructor/app/client/src/editorComponents/InputGroupComponent.tsx

44 lines
1.2 KiB
TypeScript
Raw Normal View History

2019-03-21 12:10:32 +00:00
import * as React from "react"
2019-09-05 17:47:50 +00:00
import { ComponentProps } from "./BaseComponent"
2019-03-21 12:10:32 +00:00
import { IconName, InputGroup, Intent } from "@blueprintjs/core"
import { Container } from "./ContainerComponent"
class InputGroupComponent extends React.Component<IInputGroupComponentProps> {
render() {
return (
2019-03-21 12:10:32 +00:00
<Container {...this.props}>
<InputGroup
className={this.props.className}
disabled={this.props.disabled}
large={this.props.large}
leftIcon={this.props.leftIcon}
placeholder={this.props.placeholder}
rightElement={this.props.rightElement}
round={this.props.round}
small={this.props.small}
value={this.props.value}
intent={this.props.intent}
defaultValue={this.props.defaultValue}
type={this.props.type}
/>
2019-03-21 12:10:32 +00:00
</Container>
)
}
}
2019-09-05 17:47:50 +00:00
export interface IInputGroupComponentProps extends ComponentProps {
className?: string;
disabled?: boolean;
large?: boolean;
intent?: Intent;
defaultValue?: string;
leftIcon?: IconName;
rightElement?: JSX.Element;
round?: boolean;
small?: boolean;
type?: string;
value?: string;
placeholder?: string;
}
2019-03-21 12:10:32 +00:00
export default InputGroupComponent