A React tooltip component from Radix UI Primitives, part of an open-source UI component library for building high-quality, accessible design systems and web apps
Overall
score
96%
Build a user profile card component that displays tooltips when hovering over different sections of the card. The tooltips should provide additional information about the user and handle hover interactions properly.
Create a React component that displays a user profile card with the following elements:
Username Section: Display a username with a tooltip that shows when the user joined (e.g., "Member since: January 2024")
Status Badge: Display a status indicator (online/offline/away) with a tooltip explaining the current status
Action Buttons: Display two action buttons:
The tooltips must:
@generates
export interface UserProfileCardProps {
username: string;
memberSince: string;
status: 'online' | 'offline' | 'away';
}
export function UserProfileCard(props: UserProfileCardProps): JSX.Element;Provides tooltip components with hover interaction support.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-radix-ui--react-tooltipevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10