To make a small button group with a small dropdown, I am passing btn-group-sm to ButtonDropdown.
<ButtonGroup
size="sm"
>
<Button color="primary">Grid</Button>
<Button color="secondary">Chart</Button>
<ButtonDropdown className="btn-group-sm" isOpen={this.state.open} toggle={this.toggle}>
<DropdownToggle caret>
<Button>Dropdown</Button>
</DropdownToggle>
<DropdownMenu>
<DropdownItem>Dropdown Link</DropdownItem>
<DropdownItem>Dropdown Link</DropdownItem>
</DropdownMenu>
</ButtonDropdown>
</ButtonGroup>
Do you think this is the right way to do this? Should ButtonDropdown accept a size parameter?
From one point of view, I think it's best for ButtonDropdown to inherit size from its outer ButtonGroup, but at the same time I don't reactstrap to deviate too much from the core library's behavior.
To make a small button group with a small dropdown, I am passing
btn-group-smtoButtonDropdown.Do you think this is the right way to do this? Should ButtonDropdown accept a size parameter?
From one point of view, I think it's best for ButtonDropdown to inherit size from its outer ButtonGroup, but at the same time I don't reactstrap to deviate too much from the core library's behavior.