
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@cellosignal/react-tabs
Advanced tools
Declaritive, accessible tabs in React that collapse into accordions on mobile.
This component uses the Context API, therefore there is a minimum requirement of React 16.3.
npm i @cellosignal/react-tabs
const AwesomeTabs = () => {
return (
<Tabs>
<Tab title="Tab One">
<h1>Ain't this tidy?</h1>
<p>I'm more text</p>
</Tab>
<Tab title="Tab Two">
<SomeOtherComponent />
</Tab>
<Tabs>
);
}
There are a number of options available for targeting styles and providing data to the components.
Prop | Component | Description |
---|---|---|
className | <Tabs> | Add your classNames for styling, this adds it at the top level |
contentClassName | <Tabs> | className for wrapping your content |
className | <Tab> | className to add to each tab |
activeClassName | <Tab> | className added to the active tab |
title | <Tab> | String, the title of the Tab |
toggleClassName | <Tabs> | className added to the button, only on mobile |
mobileBreakpoint | <Tabs> | Mobile breakpoint in px |
tabListClassName | <Tabs> | className added to the tab list |
We use storybook for component development, to get up and running follow these steps:
cd
into the root and run npm install
npm run dev
, this will start webpackcd
into the project and run npm run storybook
npm link
this package, to do this you need to:
cd
into this project and run npm link
cd
into your application and run npm link @cellosignal/react-tabs
Please see the contributing guidlines.
FAQs
Acessible react tabs that collapse into an accordion on mobile
We found that @cellosignal/react-tabs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.