Skip to content

Commit 3c2ad97

Browse files
authored
Add button group title (#517)
* Add button group title * v4.3.19
1 parent 22e5656 commit 3c2ad97

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netdata/netdata-ui",
3-
"version": "4.3.18",
3+
"version": "4.3.19",
44
"description": "netdata UI kit",
55
"main": "dist/index.js",
66
"module": "dist/es6/index.js",

src/components/button/buttonGroup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ const Content = ({ children }) => {
3232

3333
const RadioButtons = ({ items, checked, buttonProps = {}, onChange }) => (
3434
<>
35-
{items.map(({ label, value }, index) => {
35+
{items.map(({ label, value, title }, index) => {
3636
const buttonGroupProps = getButtonGroupProps(index, items.length)
3737
return (
3838
<Button
3939
key={value}
4040
label={label}
4141
onClick={() => onChange(value)}
42+
{...(title ? { title } : {})}
4243
{...(checked != value ? { flavour: "hollow" } : {})}
4344
{...buttonGroupProps}
4445
{...buttonProps}

0 commit comments

Comments
 (0)