Hello! I'm trying to use the <Tabs> component in a custom widget on ExB dev edition 1.5.
The component is defined on the ExB storybook (https://developers.arcgis.com/experience-builder/storybook/?path=/docs/components-jimu-ui-index-tabs-tabs--basic)
The Tabs don't load, and the console throws this error:
react-dom.js:9
TypeError: Cannot destructure property 'variants' of 'x' as it is undefined.
at Ur (index.js:formatted:13737)
at Sv.getComponentStyles (index.js:114)
at index.js:116
at Vt (index.js:56)
at Wt (index.js:56)
at index.js:56
at index.js:56
at no (react-dom.js:9)
at Ro (react-dom.js:9)
at Vu (react-dom.js:9)
My code inside the render function is the following:
<div>
<Tabs
defaultValue="tab-1"
onChange={() => { }}
onClose={() => { }}
type="underline"
value="tab-1"
className='tab-flex'
>
<Tab
key="tab-1"
id="tab-1"
title="Tab 1"
className='text-truncate tag-size'
closeable={false}
>
<div className='mt-2'>Content 1</div>
</Tab>
<Tab
key="tab-2"
id="tab-2"
title="Tab 2"
className='text-truncate tag-size'
closeable={false}
>
<div className='mt-2'>Content 2</div>
</Tab>
</Tabs>
</div>
Any thoughts? Even a copy-paste from the storybook samples fails with the same error.
Has anyone been able to make this work?
Alejandro