āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/adityakishore0/scrollx-ui/components/folder ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
<Step>Copy and paste the following code into your project.</Step>
<p> <code>folder.tsx</code> </p> <ComponentSource name="folder" /><Step>Add util file</Step>
<p> <code>lib/utils.ts</code> </p>import { ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
</Steps>
</TabsContent>
</Tabs>
import { Folder, FolderContent } from "@/components/ui/folder";
<Folder>
<FolderContent>
<div className="text-center">
<h2 className="text-2xl font-bold">ScrollX UI</h2>
<p className="mt-2 text-gray-400 font-medium">
Cool components for modern UI
</p>
</div>
</FolderContent>
</Folder>
Interactive 3D Folder UI component with hover & click animations for modern sites.
<PropsTable
rows={[
{
prop: "color",
type: "string",
default: "hsl(173, 80%, 70%)",
description: "Background color of the main folder body.",
},
{
prop: "tabColor",
type: "string",
default: "hsl(173, 84%, 42%)",
description: "Color of the folder's top tab section.",
},
{
prop: "size",
type: "xxs" | "xs" | "sm" | "md",
default: "sm",
description:
"Determines the overall folder size.",
},
{
prop: "className",
type: "string",
default: "ā",
description: "Optional class name for custom styling or positioning.",
},
{
prop: "children",
type: "ReactNode",
default: "ā",
description:
"Elements to render inside the folder. Commonly includes <FolderContent>.",
},
]}
/>
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā