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
maxWidth
string
Sets the maximum width of the popover container. Defaults to
320px
.minWidth
string
Sets the minimum width of the popover container.
padded
boolean
Sets if the popover has padding. Defaults to
true
.position
above | below | auto
Provides control to where the popover content is positioned. Defaults to
auto
.target
ReactNode
The target UI component to open the popover.
relative
boolean
Set to true if a parent element has a css position of relative. Defaults to
false
.testId
string
Sets the data-testid attribute. Used with ByTestId queries in tests.
mt,mr,mb,ml
none | 3xs | 2xs | xs | s | m | l | xl | 2xl | 3xl | 4xl
Apply margin to the top, right, bottom, and/or left of the component.
Book time in drop in hours