npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

Iโ€™ve always been into building performant and accessible sites, but lately Iโ€™ve been taking it extremely seriously. So much so that Iโ€™ve been building a tool to help me optimize and monitor the sites that I build to make sure that Iโ€™m making an attempt to offer the best experience to those who visit them. If youโ€™re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, ๐Ÿ‘‹, Iโ€™m Ryan Hefnerย  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If youโ€™re interested in other things Iโ€™m working on, follow me on Twitter or check out the open source projects Iโ€™ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soonโ€“ish.

Open Software & Tools

This site wouldnโ€™t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you ๐Ÿ™

ยฉ 2026 โ€“ย Pkg Stats / Ryan Hefner

morpheus-component-library

v0.0.1

Published

# ๐Ÿš€ Matrix Component Library

Readme

Matrix Component Library Documentation

๐Ÿš€ Matrix Component Library

A modern and customizable component library built with React, TypeScript, and Framer Motion for smooth animations. This library includes components such as Accordions, Buttons, Alerts, DropDowns, Tooltips, and more, designed to provide a sleek and consistent UI for your applications.

๐Ÿ“ฆ Installation

To install the library, run:

npm install matrix-component-library

๐Ÿ› ๏ธ Usage

Here's a quick guide on how to use the components in your React project.

1. Accordion

Single Accordion A collapsible component that displays content when the user clicks on the header.

import { SingleAccordion } from 'matrix-component-library';

<SingleAccordion
    items={[
        { header: 'Section 1', content: <p>This is the content for section 1.</p> },
        { header: 'Section 2', content: <p>This is the content for section 2.</p> },
        { header: 'Section 3', content: <p>This is the content for section 3.</p> },
    ]}
    theme="primary"
    size="medium"
/>

Single Accordion Example

Nested Accordion Create nested accordions for more complex structures.

import { NestedAccordion } from 'matrix-component-library';

<NestedAccordion
    items={[
        {
            header: 'Main Section 1',
            content: (
                <NestedAccordion
                    items={[
                        { header: 'Sub Section 1', content: <p>Nested content 1</p> },
                        { header: 'Sub Section 2', content: <p>Nested content 2</p> },
                    ]}
                />
            ),
        },
        { header: 'Main Section 2', content: <p>This is the content for section 2.</p> },
    ]}
    theme="secondary"
    size="small"
    allowMultiple={true}
/>

Nested Accordion Example

2. Button

A customizable button with animations.

import { Button } from 'matrix-component-library';

<Button
    label="Click Me"
    theme="primary"
    size="large"
    onClick={() => alert('Button clicked!')}
/>

Button Example

3. Alert

Display messages such as warnings, info, errors, or success alerts.

import { Alert } from 'matrix-component-library';

<Alert mode="Success" message="This is a success alert!" timeout={3000} />

Alert Example

4. DropDown

A versatile dropdown component with search and multi-select functionality.

import { DropDown } from 'matrix-component-library';

<DropDown
    options={['Option 1', 'Option 2', 'Option 3']}
    placeholder="Select an option"
    multiple={true}
    onSelect={(value) => console.log('Selected:', value)}
    theme="secondary"
    size="medium"
/>

DropDown Example

5. Tooltip

A simple tooltip component to display helpful information when hovering over an element.

import { ToolTip } from 'matrix-component-library';

<ToolTip content="This is a tooltip" position="top" alwaysVisible={true}>
    <button>Hover over me</button>
</ToolTip>

Tooltip Example

6. FileUploader

An interactive file uploader with drag-and-drop support.

import { FileUploader } from 'matrix-component-library';

<FileUploader submitButtonText="Upload Files" supportedTypes={['jpg', 'png']} />

FileUploader Example

7. ProgressBar

A visual representation of a task's progress.

import { ProgressBar } from 'matrix-component-library';

<ProgressBar progress={60} striped={true} color="green" />

ProgressBar Example

8. Rating

A rating component using stars or hearts.

import { Rating } from 'matrix-component-library';

<Rating icon="star" maxrating={5} readonly={false} />

Rating Example

9. SkeletonScreen

A dynamic skeleton screen for loading effects.

import { SkeletonScreen } from 'matrix-component-library';

<SkeletonScreen letters="Loading..." dropSpeed={100} color="green" />

SkeletonScreen Example

10. TextInput

A text input field with validation styles.

import { TextInput } from 'matrix-component-library';

<TextInput
    placeholder="Enter your name"
    disabled={false}
    errorHandler={(value) => value.length < 3}
    changeHandler={(value) => console.log('Changed:', value)}
/>

TextInput Example

11. Timeline

Display events in a vertical or horizontal timeline.

import { Timeline } from 'matrix-component-library';

<Timeline
    orientation="vertical"
    color="green"
    events={[
        { year: 2020, title: 'Event 1', description: 'Description of event 1' },
        { year: 2021, title: 'Event 2', description: 'Description of event 2' },
    ]}
/>

Timeline Example

๐Ÿ“„ Props

For detailed information about the props of each component, please refer to the API Documentation.

๐Ÿ› ๏ธ Customization

Themes

  • primary: Dark background with green accents.
  • secondary: Green background with dark accents.

Sizes

  • small: Compact design.
  • medium: Balanced design (default).
  • large: Spacious design for better readability.

๐Ÿ“ License

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

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.