1.0.0 • Published 6 months ago

tesseract-accordian-lib v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

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:

  1. 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} />