reactstrap#InputGroupAddon TypeScript Examples
The following examples show how to use
reactstrap#InputGroupAddon.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Modals.tsx From health-cards-tests with MIT License | 6 votes |
ConfigEditOption: React.FC<{
title: string;
default: string;
value: string;
onChange: (string) => void;
}> = (props) => {
return <>
<InputGroup>
<InputGroupAddon addonType='prepend' className='config-prepend'>
<InputGroupText>{props.title}</InputGroupText>
</InputGroupAddon>
<Input type="text" value={props.value} onChange={e => props.onChange(e.target.value)}>
</Input>
<InputGroupAddon addonType="prepend">
<Button onClick={e => props.onChange(props.default)}>↻</Button>
</InputGroupAddon>
</InputGroup>
<br />
</>;
}