A collapsible animated support widget for quick help actions using Framer Motion.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- react
- motion
Code
"use client"
import {
IconBook,
IconBug,
IconBulb,
IconMessageCircle,
} from "@tabler/icons-react"
import { toast } from "sonner"
import { SupportBox } from "@/registry/gammaui/support-box"
export default function SupportBoxDemo() {
const helpItems = [
{
title: "Contact Support",
description: "Chat with our support team for assistance.",
icon: <IconMessageCircle size={22} stroke={1.5} />,
onPress: () => toast("Opening support chat..."),
},
{
title: "Documentation",
description: "Browse our guides and API documentation.",
icon: <IconBook size={22} stroke={1.5} />,
onPress: () => toast("Opening documentation..."),
},
{
title: "Report a Bug",
description: "Found an issue? Let us know!",
icon: <IconBug size={22} stroke={1.5} />,
onPress: () => toast("Redirecting to bug report form..."),
},
{
title: "Request a Feature",
description: "Suggest improvements or new features.",
icon: <IconBulb size={22} stroke={1.5} />,
onPress: () => toast("Opening feature request page..."),
},
]
return (
<div className="flex items-center justify-center p-6">
<SupportBox title="Need Help?" items={helpItems} />
</div>
)
}
































