Skip to content

Using the Components Through Package

BhakareAbhishek edited this page Aug 7, 2024 · 9 revisions

Using Package

Pre-Requirements:

Install NPM Package

npm install @waiin/raaghu-react

Install Theme NPM Package

npm i @waiin/raaghu-react-themes

Import Into main.ts to Add Raaghu React Theme

  • Once the package is installed, import it into your main.ts file:
import '@waiin/raaghu-react-themes/build/styles/default.css'

How to Use?

    1. Import the Component:

For example:

import {RdsButton} from "@waiin/raaghu-react";

image

  • First, import the component inside your file before using it.

    1. Using it Inside the Component:

image

  • The image above shows how to use the component.

Summary of Importing and Using.

image

Clone this wiki locally