Loading preview
Animated Card
CardsA card that tilts in 3D toward the pointer with spring physics.
An accordion whose panels open with a smooth height animation, no measuring needed.
npx shadcn@latest add @venusui/accordion-smoothRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/accordion-smooth.tsxThe code behind the preview above.
accordion-smooth-demo.tsx
import { AccordionSmooth } from "@/components/ui/accordion-smooth"
export default function AccordionSmoothDemo() {
return (
<AccordionSmooth
className="max-w-md"
defaultOpen={["install"]}
items={[
{ id: "install", title: "How do I install a component?", content: "Run the install command shown on its page. The shadcn CLI adds the files for you." },
{ id: "license", title: "Can I use it in client work?", content: "Yes. Free components are MIT licensed." },
{ id: "update", title: "How do I update a component?", content: "Re-run the install command with --overwrite after committing your changes." },
]}
/>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| items | { id: string; title: ReactNode; content: ReactNode }[] | — | Sections. Required. |
| multiple | boolean | false | Allow several sections open at once. |
| defaultOpen | string[] | [] | Section ids open at first. |
| className | string | — | Classes for the wrapper. |
Only the props above.
lucide-react, React 19 and Tailwind CSS v4.h3; change the level to fit your page outline.aria-expanded and aria-controls; panels are labelled regions.inert, so their links can’t be focused. Opens instantly with reduced motion.grid-template-rows needs a current browser; older ones open instantly instead.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A card that tilts in 3D toward the pointer with spring physics.
A lens with a working iris: blades close to the chosen aperture and snap shut when you release the shutter.
Stacked cards with the next ones peeking out; Next sends the top card to the back.