0.12.3 • Published 4 months ago

avilalab-elements v0.12.3

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

Elements by avilalab

Overview

This project is a React-based framework for building visual components for websites. It leverages Vite for fast builds, Bootstrap for UI styling, SASS for custom styling, and Storybook for interactive component documentation.


Table of Contents

  1. Prerequisites
  2. Installation
  3. Running the Project
  4. Available Scripts
  5. Project Structure
  6. Customization
  7. FAQ

Prerequisites

Before setting up the project, ensure you have the following installed on your machine:


Installation

Follow these steps to set up the project:

  1. Clone the repository:

    git clone https://github.com/avilalab/elements.git
  2. Navigate to the project folder:

    cd elements
  3. Install dependencies:

    Using npm:

    npm install

    Or using Yarn:

    yarn install

Running the Project

Development Server

Start the development server with Vite:

Using npm:

npm run dev

Using Yarn:

yarn dev

The application will be available at http://localhost:5173.

Storybook

Run Storybook to view and interact with your components:

Using npm:

npm run storybook

Using Yarn:

yarn storybook

Storybook will be available at http://localhost:6006.


Available Scripts

npm run dev or yarn dev

Starts the development server with Vite.

npm run build or yarn build

Builds the project for production.

npm run storybook or yarn storybook

Runs the Storybook development server.

npm run build-storybook or yarn build-storybook

Builds the Storybook for deployment.

npm run lint or yarn lint

Runs ESLint to check for code quality issues.


Project Structure

src/
├── components/          # Standard
├── extra/               # Custom elements
├── forms/               # Form elements
├── pages/               # Contains page templates
├── scss/                # All styles
├── validation/          # Validation presets
├── App.jsx              # Main application file
├── index.jsx            # Entry point
├── .storybook/          # Storybook configuration
├── package.json         # Project dependencies and scripts
└── vite.config.js       # Vite configuration

Customization

SASS

Modify SASS files in the src/scss/ directory to customize the styles. Add additional .scss files and import them as needed in your components.

Bootstrap

The project uses Bootstrap via npm. Modify Bootstrap variables by overriding them in a _variables.scss file in src/scss/.

Components

Create or modify components in the src/components/ directory. Ensure each component has an associated Storybook story for documentation.


FAQ

Q1: How do I add a new dependency to the project?
A1: Run npm install package-name or yarn add package-name to install new dependencies. Then, import them where needed.

Q2: Can I use another CSS framework instead of Bootstrap?
A2: Yes, but you need to remove Bootstrap dependencies from package.json and adjust your components and styles accordingly.

Q3: How do I deploy the project?
A3: Run npm run build or yarn build to create a production build. Then, deploy the files in the dist/ folder to your hosting provider.

0.11.0

4 months ago

0.10.1

4 months ago

0.12.0

4 months ago

0.11.1

4 months ago

0.10.2

4 months ago

0.12.1

4 months ago

0.11.2

4 months ago

0.12.2

4 months ago

0.12.3

4 months ago

0.10.0

4 months ago

0.9.8

5 months ago

0.9.7

5 months ago

0.9.4

5 months ago

0.9.3

5 months ago

0.9.6

5 months ago

0.9.5

5 months ago

0.9.0

5 months ago

0.8.0

5 months ago

0.9.2

5 months ago

0.9.1

5 months ago

0.8.2

5 months ago

0.6.7

5 months ago

0.6.6

5 months ago

0.6.9

5 months ago

0.6.8

5 months ago

0.3.0

5 months ago

0.6.3

5 months ago

0.6.2

5 months ago

0.4.4

5 months ago

0.6.5

5 months ago

0.6.4

5 months ago

0.4.1

5 months ago

0.4.0

5 months ago

0.7.0

5 months ago

0.6.1

5 months ago

0.4.3

5 months ago

0.6.0

5 months ago

0.4.2

5 months ago

0.2.5

6 months ago

0.2.4

6 months ago

0.2.3

6 months ago