File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/styled-react/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,15 @@ type StyledProps = SxProp &
4141
4242type SegmentedControlProps = PrimerSegmentedControlProps & Omit < StyledProps , keyof PrimerSegmentedControlProps >
4343
44- const SegmentedControl = forwardRef < HTMLUListElement , SegmentedControlProps > ( function SegmentedControl ( props , ref ) {
44+ const SegmentedControlImpl = forwardRef < HTMLUListElement , SegmentedControlProps > ( function SegmentedControl ( props , ref ) {
4545 return < Box as = { PrimerSegmentedControl } ref = { ref } { ...props } />
4646} )
4747
48+ const SegmentedControl = Object . assign ( SegmentedControlImpl , {
49+ Button : PrimerSegmentedControl . Button ,
50+ IconButton : PrimerSegmentedControl . IconButton ,
51+ } )
52+
4853type StateLabelProps = PrimerStateLabelProps & SxProp
4954
5055const StateLabel = forwardRef < HTMLSpanElement , StateLabelProps > ( function StateLabel ( props , ref ) {
You can’t perform that action at this time.
0 commit comments