Dock - Basic
Loading...
Usage Guide
Install the clsx and tailwind-merge packages:
npm install clsx tw-merge framer-motion
Next, add cn utility:
import { twMerge } from "tailwind-merge";
import { clsx, type ClassValue } from "clsx";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
Copy and paste the following component source.
Props - Dock
Prop | Type | Description | Default |
---|---|---|---|
children | ReactNode | The content to be rendered inside the component | _ |
className | string | Custom class to apply to the component. | _ |
Props - DockItem
Prop | Type | Description | Default |
---|---|---|---|
icon | ReactNode | Icon component | _ |
label | string | Text to show on tooltip | _ |
className | string | Custom class to apply to the component. | _ |