tesseract-accordian-lib2

1.0.0 • Public • Published

Accordion Component

The Accordion component is a React-based component that allows you to create a simple accordion UI element for displaying and collapsing content. It is designed to be easy to use and customizable.

Usage

To use the Accordion component in your React application, follow these steps:

  1. Install any necessary dependencies:

  2. Import the Accordion component in your JavaScript/JSX file:

import Accordion from 'accordian-tesseract-lib';
const accordionItems = [
  {
    title: 'Item 1',
    content: 'Content for item 1 goes here.',
  },
  {
    title: 'Item 2',
    content: 'Content for item 2 goes here.',
  },
  
];
3.Render the Accordion component with the items prop:
<Accordion items={accordionItems} />

Readme

Keywords

none

Package Sidebar

Install

npm i tesseract-accordian-lib2

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

9.28 kB

Total Files

10

Last publish

Collaborators

  • surbhi605