About
Enhanced shadcn/ui button
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Button to your project and fits it to your theme.
Code
How Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { Button } from "@/components/ui/button";
import { ChevronDown, ChevronUp } from "lucide-react";
import { useState } from "react";
function Component() {
const [isExpanded, setIsExpanded] = useState<boolean>(false);
const toggleExpand = () => {
setIsExpanded((prevState) => !prevState);
};
return (
<Button
variant="ghost"
onClick={toggleExpand}
aria-expanded={isExpanded}
aria-controls="expandable-content"
>
{isExpanded ? "Show less" : "Show more"}
{isExpanded ? (
<ChevronUp className="-me-1 ms-1" size={16} strokeWidth={2} aria-hidden="true" />
) : (
<ChevronDown className="-me-1 ms-1" size={16} strokeWidth={2} aria-hidden="true" />
)}
</Button>
);
}
export { Component };






![Calendar [React Day Picker]](https://cdn.21st.dev/cdn-cgi/image/fit=scale-down,width=640,quality=75,format=webp/https://cdn.21st.dev/user_originui/calendar/default/preview.1737991983843.png)







