Popover
Component
A small overlay that opens on demand, used in other components.
Related components: Dropdown, Header, TooltipComponent
This is a popover
It can be used for a number of different contexts.const target = (
<GoAButton type="secondary" size="compact">
Click me
</GoAButton>
);<GoAPopover target={target} >
<p>This is a popover</p>
It can be used for a number of different contexts.
</GoAPopover>Properties
maxWidthstringSets the maximum width of the popover container. Defaults to
320px.minWidthstringSets the minimum width of the popover container.
paddedbooleanSets if the popover has padding. Defaults to
true.positionabove | below | autoProvides control to where the popover content is positioned. Defaults to
auto.targetReactNodeThe target UI component to open the popover.
relativebooleanSet to true if a parent element has a css position of relative. Defaults to
false.testIdstringSets the data-testid attribute. Used with ByTestId queries in tests.
mt,mr,mb,mlnone | 3xs | 2xs | xs | s | m | l | xl | 2xl | 3xl | 4xlApply margin to the top, right, bottom, and/or left of the component.
Book time in drop in hours