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"
import { IComponentProps } from "./BaseComponent"
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>
)
}
}
export interface IInputGroupComponentProps extends IComponentProps {
2019-03-21 12:10:32 +00:00
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