@wordpress/components
Version:
UI components for WordPress.
20 lines (15 loc) • 413 B
Markdown
`Popover` is a component to render a floating content modal. It is similar in purpose to a tooltip, but renders content of any sort, not only simple text.
```jsx
import { Button, Popover, View, Text } from '@wordpress/components/ui';
function Example() {
return (
<Popover trigger={ <Button>Popover</Button> }>
<View>
<Text>Code is Poetry</Text>
</View>
</Popover>
);
}
```