11import React , { Component , ReactElement } from 'react' ;
2- import { Button , SocketedButton , Flex } from '@deephaven/components' ;
2+ import {
3+ Button ,
4+ SocketedButton ,
5+ Flex ,
6+ ButtonGroup ,
7+ } from '@deephaven/components' ;
38
49import { dhTruck } from '@deephaven/icons' ;
510import SampleSection from './SampleSection' ;
@@ -17,7 +22,7 @@ class Buttons extends Component<Record<string, never>, ButtonsState> {
1722 < >
1823 < h5 > Button Kinds</ h5 >
1924 < SampleSection name = "buttons-regular" style = { { padding : '1rem 0' } } >
20- < Flex gap = "size-100" >
25+ < ButtonGroup >
2126 < Button kind = "primary" onClick = { noOp } >
2227 Primary
2328 </ Button >
@@ -39,7 +44,7 @@ class Buttons extends Component<Record<string, never>, ButtonsState> {
3944 < Button kind = "ghost" onClick = { noOp } >
4045 Ghost
4146 </ Button >
42- </ Flex >
47+ </ ButtonGroup >
4348 </ SampleSection >
4449 </ >
4550 ) ;
@@ -74,41 +79,21 @@ class Buttons extends Component<Record<string, never>, ButtonsState> {
7479 return (
7580 < SampleSection name = "buttons-socketed" >
7681 < h5 > Socketed Buttons (for linker)</ h5 >
77- < SocketedButton
78- style = { { marginBottom : '1rem' , marginRight : '1rem' } }
79- onClick = { noOp }
80- >
81- Unlinked
82- </ SocketedButton >
83- < SocketedButton
84- style = { { marginBottom : '1rem' , marginRight : '1rem' } }
85- isLinked
86- onClick = { noOp }
87- >
88- Linked
89- </ SocketedButton >
90- < SocketedButton
91- style = { { marginBottom : '1rem' , marginRight : '1rem' } }
92- isLinkedSource
93- onClick = { noOp }
94- >
95- Linked Source
96- </ SocketedButton >
97- < SocketedButton
98- style = { { marginBottom : '1rem' , marginRight : '1rem' } }
99- isLinked
100- isInvalid
101- onClick = { noOp }
102- >
103- Error
104- </ SocketedButton >
105- < SocketedButton
106- style = { { marginBottom : '1rem' , marginRight : '1rem' } }
107- disabled
108- onClick = { noOp }
109- >
110- Disabled
111- </ SocketedButton >
82+ < ButtonGroup marginBottom = "1rem" >
83+ < SocketedButton onClick = { noOp } > Unlinked</ SocketedButton >
84+ < SocketedButton isLinked onClick = { noOp } >
85+ Linked
86+ </ SocketedButton >
87+ < SocketedButton isLinkedSource onClick = { noOp } >
88+ Linked Source
89+ </ SocketedButton >
90+ < SocketedButton isLinked isInvalid onClick = { noOp } >
91+ Error
92+ </ SocketedButton >
93+ < SocketedButton disabled onClick = { noOp } >
94+ Disabled
95+ </ SocketedButton >
96+ </ ButtonGroup >
11297 </ SampleSection >
11398 ) ;
11499 }
0 commit comments