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 🙏

© 2024 – Pkg Stats / Ryan Hefner

mosaic-components

v1.0.23

Published

Mosaic Components is a React component library designed to provide a set of reusable UI components. It includes customizable text boxes, buttons, calendars, and text areas that can be easily integrated into any React application.

Downloads

107

Readme

Mosaic Components

Mosaic Components is a React component library designed to provide a set of reusable UI components. It includes customizable text boxes, buttons, calendars, and text areas that can be easily integrated into any React application.

Installation

To install Mosaic Components, run the following command in your project directory:

npm install mosaic-components


## Components
### MosaicTextBox
A customizable text input component.

```Props
```label: string (optional) - Label for the text box.
```style (optional): React.CSSProperties object for inline styling.
```placeholder (optional): String specifying the placeholder text of the input field.
```id: String specifying the unique identifier for the input field.
```labelColor (optional): String specifying the color of the label text. Default is #000000.
```defaultValue: string (optional) - Default value of the text box.
```onChange: function (optional) - Callback function that is called when the text changes.

### MosaicCalendar
A date picker component that allows users to select a date.

```Props
```minDate: string (optional) - Minimum date that can be selected.
```maxDate: string (optional) - Maximum date that can be selected.
```onChange: function (optional) - Callback function that is called when the date changes.
```id: String specifying the unique identifier for the input field.
```style (optional): React.CSSProperties object for inline styling.
```labelColor (optional): String specifying the color of the label text. Default is #000000.

### MosaicButton
A button component with customizable styling and click handling.

```Props
```label: string - Text to display on the button.
```onClick: function - Callback function that is called when the button is clicked.
```style: object (optional) - Custom styles to apply to the button.


### MosaicTextArea
A text area component for multi-line input.

```Props
```placeholder: string (optional) - Placeholder text for the text area.
```rows: number (default: 4) - Number of rows.
```cols: number (default: 50) - Number of columns.
```onChange: function (optional) - Callback function that is called when the text changes.
```id: String specifying the unique identifier for the input field.
```style (optional): React.CSSProperties object for inline styling.
```labelColor (optional): String specifying the color of the label text. Default is #000000.

### MosaicGrid
The `MosaicGrid` component is a flexible and customizable React component designed to display data in a tabular format with optional styling for headers and data cells. It supports various styling options to customize the appearance of the table headers and data cells.

`Features

- Display data in a tabular format.
- Customizable header and data cell styles.
- Supports empty data states.
```Props
```data: Array of objects representing the data to be displayed.
```headerColor (optional): String specifying the background color of the table headers. Default is #f2f2f2.
```headertextColor (optional): String specifying the text color of the table headers. Default is #000000.
```dataBackgroundColor (optional): String specifying the background color of the data cells. Default is transparent.
```dataTextColor (optional): String specifying the text color of the data cells. Default is #000000.

## Accessibility
Our components are designed with accessibility in mind, supporting ARIA attributes and keyboard navigation to ensure usability for all users.

## Contributing
Contributions to Mosaic Components are welcome! Please refer to our contributing guidelines for more information on how to contribute.

## License
Mosaic Components is licensed under the MIT License. See the LICENSE file for more details.