Components
Loading preview...
Styling component to show expanded or collapsed content.
@shugar
npx shadcn@latest add https://21st.dev/r/shugar/show-moreimport React, { useState } from "react";
import { ShowMore } from "@/components/ui/show-more";
export const Demo = () => {
const [expanded, setExpanded] = useState(false);
return (
<div className="min-h-[100vh] flex items-center justify-center">
<ShowMore expanded={expanded} onClick={setExpanded} />
</div>
);
};