"use client"; import { Button } from "@azmr/ui/button"; import { Collapse } from "@azmr/ui/presets"; import { useId, useState } from "react"; export default function CollapseDemo() { const [open, setOpen] = useState(false); const id = useId(); return (

This panel animates its height by moving grid-template-rows between 0fr and 1fr, so no height is ever measured in JavaScript. While it is closed it is inert: its content cannot be focused or read.

); }