UNPKG

@wordpress/components

Version:
20 lines (15 loc) 413 B
# Popover `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. ## Usage ```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> ); } ```