About
A click-triggered popover for displaying interactive content anchored to a trigger element. Astryx by Meta. Source: https://astryx.atmeta.com/components/Popover
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Popover to your project and fits it to your theme.
Code
How Astryx Popover 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-popover.tsx. */
import '@/components/ui/astryx-popover-utils/astryx-preview.css';
import {useState} from 'react';
import {Popover} from '@/components/ui/astryx-popover';
import {Button} from '@astryxdesign/core/Button';
import {VStack} from '@astryxdesign/core/Layout';
import {Text, Heading} from '@astryxdesign/core/Text';
import {Divider} from '@astryxdesign/core/Divider';
function OfficialSample() {
const [isOpen, setIsOpen] = useState(false);
return (
<Popover
isOpen={isOpen}
onOpenChange={setIsOpen}
hasAutoFocus={false}
placement="below"
label="Settings"
width={280}
content={
<VStack gap={3}>
<Heading level={4} tabIndex={0}>
Settings
</Heading>
<Divider />
<Text type="body">
Notifications, dark mode, and sound preferences.
</Text>
</VStack>
}>
<Button label="Settings">Settings</Button>
</Popover>
);
}
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>
);
}







