About
Component wrapper for tooltip display triggered on hover or focus. Astryx by Meta. Source: https://astryx.atmeta.com/components/Tooltip
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Tooltip to your project and fits it to your theme.
Code
How Astryx Tooltip is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
/* Copyright (c) 2026 Meta Platforms, Inc. See MIT notice in astryx-tooltip.tsx. */
import '@/components/ui/astryx-tooltip-utils/astryx-preview.css';
import {Tooltip} from '@/components/ui/astryx-tooltip';
import {Button} from '@astryxdesign/core/Button';
function OfficialSample() {
return (
<Tooltip content="This is a helpful tooltip" placement="above">
<Button label="Hover me" />
</Tooltip>
);
}
export default function Demo() {
return (
<div className="astryx-demo" data-astryx-theme="neutral" data-theme="light">
<div className="astryx-demo-content" data-centered style={{maxWidth: 320}}>
<OfficialSample />
</div>
</div>
);
}







