1 |
|
2 |
|
3 |
|
4 |
|
5 | import React from 'react';
|
6 | import { LabIcon } from '../icon';
|
7 | import { classes } from '../utils';
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export function InputGroup(props) {
|
15 | const { className, inputRef, rightIcon, ...others } = props;
|
16 | return (React.createElement("div", { className: classes('jp-InputGroup', className) },
|
17 | React.createElement("input", { ref: inputRef, ...others }),
|
18 | rightIcon && (React.createElement("span", { className: "jp-InputGroupAction" }, typeof rightIcon === 'string' ? (React.createElement(LabIcon.resolveReact, { icon: rightIcon, elementPosition: "center", tag: "span" })) : (React.createElement(rightIcon.react, { elementPosition: "center", tag: "span" }))))));
|
19 | }
|
20 |
|
\ | No newline at end of file |