New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-dynamic-tabs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dynamic-tabs

This component allow that users create a simple and custom breadcrumb navigation pages

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React Dynamic Tabs

A React component that allows users to create dynamic tabs with custom colors.

Installation

To install the react-dynamic-tabs package, run the following command:

npm install react-dynamic-tabs

Usage

  1. Import the Tabs component from the react-dynamic-tabs package:
import Tabs from 'react-dynamic-tabs';
  1. Render the Tabs component in your React app and set the initial state for the tabs:
function App() {
  const [tabs, setTabs] = useState([
    { label: 'Tab 1', content: 'This is the content for Tab 1' },
    { label: 'Tab 2', content: 'This is the content for Tab 2' },
  ]);

  return (
    <div>
      <Tabs tabs={tabs} setTabs={setTabs} />
    </div>
  );
}
  1. Customize the appearance of the tabs by passing in custom colors as props:
<Tabs
  tabs={tabs}
  setTabs={setTabs}
  tabColor="#EDEDED"
  activeTabColor="#FFFFFF"
  tabTextColor="#000000"
  activeTabTextColor="#FFFFFF"
/>
  1. Add new tabs by clicking the "Add Tab" button and delete tabs by clicking the "x" icon on the tab.

Contributing

If you would like to contribute to the react-dynamic-tabs package, please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

If you have any questions or comments, please email me at gustavobmachado105@gmail.com.

Keywords

FAQs

Package last updated on 15 Mar 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc