Skip to content

Instantly share code, notes, and snippets.

@vladyio
Created September 27, 2020 08:19
Show Gist options
  • Save vladyio/1acdc89a2eb4dd15ae3ec4ec3766b90c to your computer and use it in GitHub Desktop.
Save vladyio/1acdc89a2eb4dd15ae3ec4ec3766b90c to your computer and use it in GitHub Desktop.
// My trigger Button
const SettingsButton = () => {
return (
// <Button> component here
)
}
// My popover
const SettingsPopover = () => {
return (
<Popover>
<PopoverTrigger>
<SettingsButton /> // Trigger button
</PopoverTrigger>
<PopoverContent>
<PopoverArrow />
<PopoverCloseButton />
<PopoverHeader>Settings</PopoverHeader>
<PopoverBody>
<Text>Hello</Text>
</PopoverBody>
</PopoverContent>
</Popover>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment