DocsCopy

Copy to ClipBoard

Copy to Clipboard Component

In this world, is the destiny of mankind controlled by some transcendental entity or law? Is it like the hand of God hovering above? At least it is true that man has no control; even over his own will.
You Will Also Copy This Text. But instead of children, this component uses text prop.

Installation

Install Dependencies

npm i clsx tailwind-merge 

Create @/utils/cn.ts file

import { ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: ClassValue[]) {
    return twMerge(clsx(inputs));
}