Search

Search the site

All components

Expand Button

Button with an expand effect on hover.

Default
Default expand button
1import { ExpandButton } from "@/registry/ui/expand-button";
2
3export function ExpandButtonExamples() {
4 return <ExpandButton username="@username">Follow</ExpandButton>;
5}

Installation & source

Install via the shadcn CLI or copy the registry files manually.

bash
npx shadcn@latest add @tt-ui/expand-button

Props

NameTypeDefaultDescription
childrenReactNodeRequiredThe content of the button