💄(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:
lebaudantoine
2024-08-14 16:46:12 +02:00
committed by aleb_the_flash
parent 028f20375f
commit 038e6368e4

View File

@@ -149,6 +149,15 @@ const StyledTabPanel = styled(RACTabPanel, {
outline: '2px solid red',
},
},
variants: {
flex: {
true: {
display: 'flex',
flexGrow: 1,
overflow: 'auto',
},
},
},
})
export type TabPanelProps = RACTabPanelProps &