Hey all, I have 2 questions related to Crayons FwTabs component:
- For some reason setting active tab using
activeTabNamedoes not work, but usingactiveTabIndexeverything works well. What can be the issue here? We would like to useactiveTabNamebetter…
P.S. here is the React code snippet that I use. Looks like all tabs names are passed properly
<FwTabs
activeTabName={activeTab} // doesn't work even though activeTab contains name of active tab
activeTabIndex={activeTab === CUSTOMER_DETAILS_TAB ? 0 : 1} // works as expected
>
<FwTab
slot="tab"
panel={CUSTOMER_DETAILS_TAB}
onClick={() => setActiveTab(CUSTOMER_DETAILS_TAB)}
>
...
</FwTab>
<FwTab
slot="tab"
panel={ORDER_DETAILS_TAB}
onClick={() => setActiveTab(ORDER_DETAILS_TAB)}
>
...
</FwTab>
<FwTabPanel name={CUSTOMER_DETAILS_TAB}>
...
</FwTabPanel>
<FwTabPanel name={ORDER_DETAILS_TAB}>
...
</FwTabPanel>
</FwTabs>
- How can I use Custom CSS Properties such as here to style Crayons components? Wasn’t able to find this info anywhere…
Thanks in advance,
Vitalii