【发布时间】:2021-04-14 21:00:15
【问题描述】:
我想使用 Reactstrap 缩短输入元素的宽度,我该怎么做?
我已经尝试将 bsSize 设置为 small,但它仍然不起作用
<InputGroup>
<Input
type="text"
name="searchTxt"
value={props.searchText}
onChange={props.updateSearchText}
placeholder="Type keyword here..."
size="md"
bsSize="small"
></Input>
<Button
color="secondary"
onClick={() => props.getSearchResult(props.searchText)}
>
<MdSearch />
</Button>
</InputGroup>
这会占用导航栏中的所有剩余空间,我希望它只是占用少量空间。
【问题讨论】:
标签: javascript reactjs reactstrap