New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

roadmap-component

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roadmap-component

A reusable roadmap component for displaying a product roadmap or change log

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
11
1000%
Maintainers
1
Weekly downloads
 
Created
Source

roadmap-component

A reusable roadmap component for displaying a product roadmap or change log

Installation

You can install the package using npm:

npm install roadmap-component

Usage

To use the roadmap component, import it into your project:

import RoadmapComponent from 'roadmap-component';

const roadmapData = [
{ title: 'Q1 2023', description: 'Launch MVP' },
{ title: 'Q2 2023', description: 'Introduce premium features' },
// Add more roadmap items...
];

function App() {
return (
<div>
<h1>My Product Roadmap</h1>
<RoadmapComponent data={roadmapData} />
</div>
);
}

export default App;

The data prop expects an array of objects, where each object represents a roadmap item with a title and description.

Customization

You can customize the appearance of the roadmap component by passing CSS styles as props. Here's an example:

const roadmapStyle = {
backgroundColor: 'lightgray',
padding: '1rem',
borderRadius: '4px',
};

Feel free to modify the CSS properties to match your design requirements.

Examples

createRoadmap('roadmapContainer', [
  {
    title: 'Q1 2023',
    description: 'Launch MVP',
    status: 'In progress',
    startDate: '2023-01-01',
    endDate: '2023-03-31',
  },
  {
    title: 'Q2 2023',
    description: 'Introduce premium features',
    status: 'Planned',
    startDate: '2023-04-01',
    endDate: '2023-06-30',
  },
  // Add more roadmap items with custom fields...
]);

License

This project is licensed under the MIT License.

FAQs

Package last updated on 21 Aug 2023

Related posts