💄(frontend) introduce 'flex' TabPanel variant
By default, TabPanel used the flow layout alg. Added a variant to support flex layou in TabPanel
This commit is contained in:
committed by
aleb_the_flash
parent
028f20375f
commit
038e6368e4
@@ -149,6 +149,15 @@ const StyledTabPanel = styled(RACTabPanel, {
|
|||||||
outline: '2px solid red',
|
outline: '2px solid red',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
variants: {
|
||||||
|
flex: {
|
||||||
|
true: {
|
||||||
|
display: 'flex',
|
||||||
|
flexGrow: 1,
|
||||||
|
overflow: 'auto',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
export type TabPanelProps = RACTabPanelProps &
|
export type TabPanelProps = RACTabPanelProps &
|
||||||
|
|||||||
Reference in New Issue
Block a user