DR.UI

Manual Installation

Using components is very straightforward, anyone can do it.
1. Pick a Component

Choose the component you want to install from our list of available components.

2. Install the Dependencies

Install all the dependencies required for the component.

1npm install motion...
3. Copy the code

The Code tab contains all the code you need to copy

Example
1"use client"; 2import React, { useEffect, useRef, useState } from "react"; 3import { motion, AnimatePresence, easeIn } from "framer-motion"; 4import { FaFacebook, FaInstagram } from "react-icons/fa"; 5import { FaTwitter } from "react-icons/fa6"; 6 7const ExpandableNavbar = ({ 8 logo, 9 initialWidth, 10 finalWidth, 11 easing, 12 animationDuration, 13 closeOnOutsideClick, 14}) => {
4. Use the Component

Import the component. use the Usage-code and start using it in your project. (Below is an example of how you can use the component)

1import SplitText from "./SplitText"; 2 3<SplitText 4text="Hello, you!" 5delay={100} 6duration={0.6}/>
That's all!

From here on, it's all about how you integrate the component into your project. The code is yours to play around with - modify styling, functionalities, anything goes!