Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
key={index}
index={index}
/>
))}
{activeTab ? activeTab.content : null}
);
}
}
Tabs.propTypes = {
/**
* Specify how to justify the tabs within their container
*/
align: PropTypes.oneOf(VanillaTabs.AvailableAlignments),
/**
* Called when user activates a tab
*/
onTabChange: PropTypes.func,
/**
* Accepts Tab components
*/
children: PropTypes.node
};
Tabs.defaultProps = {
align: "center",
onTabChange: () => {}
};
{props.children}
)}
);
}
TabsAdapter.propTypes = {
align: PropTypes.oneOf(Tabs.AvailableAlignments)
};
TabsAdapter.defaultProps = {
align: "center"
};