A set of completely unstyled, fully accessible UI components for React, designed to integrate beautifully with Tailwind CSS.
84
Build a user profile dropdown menu component that demonstrates flexible component composition patterns. The component should display a button with the current user's name and, when clicked, show a dropdown menu with several action options.
The dropdown menu must support the following features:
Create a UserDropdown component that accepts:
userName (string): The name of the user to displayExport the component as the default export from src/UserDropdown.jsx.
@generates
/**
* A user profile dropdown menu component that displays user actions.
*
* @param {Object} props - Component props
* @param {string} props.userName - The name of the user to display in the button
* @returns {JSX.Element} The rendered dropdown menu component
*/
export default function UserDropdown({ userName }) {
// Implementation here
}Provides accessible, unstyled UI components with flexible composition patterns.
@satisfied-by
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