adel-gu / react-practice-components

Headless reusable and customized accordion component built with focus on practicing compound component pattern.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“— Table of Contents

πŸ“– Reusable Accordion component

Practicing compound component patterns by building a react reusable accordion component. The accordion is a headless component you can add your own CSS style or tailwind CSS.

πŸ›  Built With

Tech Stack

Client
  • React.js
  • TypeScript
  • TailwindCSS

πŸ’» Getting Started

To get a local copy up and running, follow these steps.

Setup

Clone this repository to your desired folder:

Example commands:

  cd my-folder
  git clone git@github.com:adel-gu/react-practice-components.git

Install

Install this project with:

Example command:

  cd my-project
  yarn install

OR

  cd my-project
  npm install

Usage

To run the project, execute the following command:

Example command:

  yarn start

πŸ”­ Future Features

  • Accordion triggers: Implement an Accordion Trigger that wraps up the close and open buttons

(back to top)

⭐️ Show your support

This project shows how to build a reusable, headless component using react, typescript, and tailwindCSS. So if you like this project please give it a star.

(back to top)

About

Headless reusable and customized accordion component built with focus on practicing compound component pattern.


Languages

Language:TypeScript 81.7%Language:HTML 16.3%Language:JavaScript 1.5%Language:CSS 0.6%