A set of completely unstyled, fully accessible UI components for React, designed to integrate beautifully with Tailwind CSS.
84
Build a product details component that displays a summary and an expandable details panel. When the user toggles the details panel, it should transition smoothly, and the displayed product information should remain visible during closing transitions to prevent visual flicker.
Use this sample product data for the component:
const sampleProduct = {
name: "Wireless Headphones",
price: "$129.99",
description: "Premium wireless headphones with active noise cancellation",
specifications: "Battery: 30 hours, Bluetooth 5.0, Weight: 250g"
};@generates
/**
* A product details disclosure component with state-frozen transitions
* Displays a summary and toggleable details panel
*/
export function ProductDetails(): JSX.Element;Provides accessible, unstyled UI components with transition support and state management.
Install with Tessl CLI
npx tessl i tessl/npm-headlessui--reactdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10