
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@kodiak-ui/tabs
Advanced tools
Easily render fully composable and styleable tabs in your UI.
npm install @kodiak-ui/tabs
yarn add @kodiak-ui/tabs
function TabsExample() {
const tabsData = React.useMemo(function generateTabs() {
return [
{
tab: 'Tab 1',
panel: (
<div>
<h3>Testing</h3>
</div>
),
},
{ tab: 'Tab 2', panel: 'Tab 2' },
{ tab: 'Tab 3', panel: 'Tab 3' },
{ tab: 'Tab 4', panel: 'Tab 4' },
]
}, [])
const { tabs, tabPanels, selectedIndex } = useTabs({
tabs: tabsData,
})
return (
<Tabs sx={{ border: '1px solid', borderColor: 'gray.2' }}>
<TabList aria-label="Describes the tabs">
{tabs.map((props, index) => (
<Tab
key={index}
{...props}
sx={{
color: selectedIndex === index ? 'primary' : 'text',
position: 'relative',
'::after': {
bg: selectedIndex === index ? 'primary' : 'muted',
bottom: 0,
content: '""',
height: selectedIndex === index ? '2px' : '1px',
left: 0,
position: 'absolute',
right: 0,
width: '100%',
},
}}
/>
))}
</TabList>
{tabPanels.map((props, index) => (
<TabPanel key={index} {...props} sx={{ p: 4 }} />
))}
</Tabs>
)
}
FAQs
Tabs hook and components
We found that @kodiak-ui/tabs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.