-
Notifications
You must be signed in to change notification settings - Fork 12
Using the Components Through Package
BhakareAbhishek edited this page Aug 7, 2024
·
9 revisions
Pre-Requirements:
- Node v16 or v18 should be installed.
- Yarn v1.20+ (not v2) or npm v6+ (already included with Node).
- The project you are using should be set up with Vite.
npm install @waiin/raaghu-react- For more information about the package, visit @waiin/raaghu-react
npm i @waiin/raaghu-react-themes- For more information about the package, visit @waiin/raaghu-react-themes
- Once the package is installed, import it into your main.ts file:
import '@waiin/raaghu-react-themes/build/styles/default.css'
-
- Import the Component:
For example:
import {RdsButton} from "@waiin/raaghu-react";

-
First, import the component inside your file before using it.
-
- Using it Inside the Component:

- The image above shows how to use the component.
