Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kingrashy12/secptrum-ui

A comprehensive React component library
https://github.com/kingrashy12/secptrum-ui

image-picker modal reactjs styled-components uikit

Last synced: about 1 month ago
JSON representation

A comprehensive React component library

Awesome Lists containing this project

README

        


SecptrumUI Logo

#

**SecptrumUI** A React component library with adaptable, responsive designs using `styled-chroma`

## Table of Contents

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Components](#components)
- [Customization](#customization)
- [Contributing](#contributing)

## Features

- 🎨 **Customizable**: Easily customize components using `styled-chroma` for advanced styling.
- 🧩 **Modular**: Import only the components you need, reducing bundle size.
- 💻 **Responsive**: All components are designed to be fully responsive.
- ⚡ **Fast Development**: Speed up your development process with pre-built, easy-to-integrate components.
- 🔍 **Accessible**: Built with accessibility best practices in mind.

## Installation

### Prerequisites

Before installing SecptrumUI, ensure you have:

- React `>= 18.0.0`
- ReactDOM `>= 18.0.0`

installed in your project.

### Install SecptrumUI

To install SecptrumUI, you can use npm or yarn:

```bash
# Using npm
npm install secptrum-ui

# Using yarn
yarn add secptrum-ui
```

## Usage

To use SecptrumUI components in your project, import the components you need

```bash
import { Button, Input, Stack, Box } from 'secptrum-ui';

function App() {
return (





Click Me


);
}

```

## Components

SecptrumUI includes a variety of components to help you build your application

- [Button](#Button): A versatile button component with multiple styles and sizes.
- [Card](#Card): A flexible card component for displaying content.
- [Modal](#Modal): A modal dialog for alerts, confirmations, or custom content.
- [Toast](#Toast): Notifications and messages to provide feedback to users.
- [Input](#Input): Customizable input fields with validation support.
- [Tabs](#Tabs): A tabs component for navigation or selection options.
- [Stack](#Stack): A layout component for arranging child elements with spacing.
- [Box](#Box): A versatile container component for layout and styling purposes.
- [ImagePicker](#ImagePicker): A picker components that allows users to select and upload an image.

## Button

- `Button`: A customizable button component designed to handle various actions and events in your application. The Button component supports multiple variants, sizes, and states, making it versatile and adaptable to different design and functionality needs.

## Input

- `Input`: A versatile input field component that supports different types, styles, and additional features like icons. The Input component is designed to be highly customizable, making it suitable for various use cases such as forms, search bars, and user data entry.

## Stack

- `Stack`: A layout component that arranges its children in a vertical or horizontal stack with configurable spacing. The Stack component simplifies the management of child components' spacing, alignment,

## Box

- `Box`: A flexible container component that serves as a building block for layout and styling. The Box component allows you to easily control spacing (padding and margin), alignment, borders, and other CSS properties through props.

## Tabs

- `Tabs`: A tabs component that allows users to switch between different views or sections of content. The Tabs component provides a clean and intuitive interface for navigating between different parts of an application.

For a full list of components and their usage, please refer to the [documentation](https://secptrumui.vercel.app//docs/components/action/button).

## Coutomization

SecptrumUI leverages `styled-chroma` for customization. You can adjust the appearance of components by using the `styled-chroma` API to create your own styles.

### Example

```bash
import { styled } from "styled-chroma";
import { Button } from 'secptrum-ui';

// Customizing the Button component

const CustomButton = styled(Button)`
background-color: #007bff;
color: white;
padding: 12px 24px;
`;

function App() {
return (

Customized Button

);
}

export default App;
```

## Contributing

We welcome contributions to improve SecptrumUI! Please see our [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on how to submit improvements and bug fixes.