0.1.16 • Published 11 months ago

@saeedkolivand/react-ui-toolkit v0.1.16

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Features

  • Modern Design - Clean and professional component designs
  • TypeScript Support - Full type definitions for all components
  • Accessibility - WCAG 2.1 compliant components
  • Customizable - Easily customize using Tailwind CSS
  • Dark Mode - Built-in dark mode support
  • Responsive - Mobile-first design approach

Installation

npm install @saeedkolivand/react-ui-toolkit
# or
yarn add @saeedkolivand/react-ui-toolkit

Quick Start

import React from "react";
import { Button, StylesProvider } from "@saeedkolivand/react-ui-toolkit";
import "@saeedkolivand/react-ui-toolkit/dist/styles.css";

function App() {
  return (
    <StylesProvider>
      <div className="p-4">
        <h1 className="text-2xl font-bold mb-4">Hello React UI Toolkit</h1>
        <Button variant="primary">Click Me</Button>
      </div>
    </StylesProvider>
  );
}

export default App;

Documentation

For detailed documentation, see the following resources:

Available Components

Base Components

  • Button
  • Input
  • Textarea
  • Select
  • Checkbox
  • Radio
  • Switch
  • Tooltip
  • Tag
  • Icon
  • Divider

Layout Components

  • Container
  • Row
  • Col

Feedback Components

  • Card
  • Alert
  • Badge
  • Avatar
  • Spinner
  • Progress
  • Notification

Navigation Components

  • Tabs
  • Modal
  • Drawer
  • Dropdown
  • Accordion

Theme Components

  • ThemeToggle

Development

# Clone the repository
git clone https://github.com/saeedkolivand/react-ui-toolkit.git
cd react-ui-toolkit

# Install dependencies
npm install

# Start Storybook for development
npm run storybook

# Run tests
npm test

# Build the library
npm run build

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Usage

Importing Styles

You have three options for importing styles:

Option 1: Direct CSS Import

import "@saeedkolivand/react-ui-toolkit/dist/styles.css";

Option 2: StylesProvider (Recommended)

import { StylesProvider } from "@saeedkolivand/react-ui-toolkit";

function App() {
  return (
    <StylesProvider>
      <YourApplication />
    </StylesProvider>
  );
}

Option 3: SSR-Compatible Provider (Next.js)

import { StylesProviderSSR } from "@saeedkolivand/react-ui-toolkit";

function App() {
  return (
    <StylesProviderSSR>
      <YourApplication />
    </StylesProviderSSR>
  );
}

Option 4: Higher-Order Component

import { withStylesProvider } from "@saeedkolivand/react-ui-toolkit";

function YourApp() {
  return <div>Your application content</div>;
}

export default withStylesProvider(YourApp);

Using Components

import { Button, Input } from "@saeedkolivand/react-ui-toolkit";

function App() {
  return (
    <div>
      <Input placeholder="Enter your name" />
      <Button>Click me</Button>
    </div>
  );
}

Development Workflow

  1. Create a feature branch
  2. Make your changes
  3. Write/update tests
  4. Update documentation
  5. Submit a pull request

Pre-commit Hooks

Before each commit, the following will run automatically:

  • TypeScript type checking
  • ESLint
  • Prettier
  • Tests
  • Project build

License

MIT © Saeed Kolivand

0.1.16

11 months ago

0.1.15

11 months ago

0.1.14

11 months ago

0.1.13

11 months ago

0.1.12

11 months ago

0.1.11

11 months ago

0.1.10

11 months ago

0.1.9

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago