You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A popover is a piece of UI that pops over or renders on top of other UI on the
page. It's a component "primitive" meaning it can be used to help make more
complex components that utilize this behavior.
Popover Behaviors
popovers are invoked/shown by interacting with some other UI element either
through click, hover, key press, or focus
popovers can be dismissed either through blur, esc keypress, or by
having a different popover be triggered and shown
popovers are displayed on top of other UI and out of the normal page flow
typically anchored to a triggering element
Usage
<Popover/>...
can be placed in several directions directions, including: top, bottom, left, right (etc) via the align prop
accepts a custom className
can be rendered in three stylistic variants: highContrast, light, and default
accepts a string or elementType to render as a custom top level node
can be rendered with or without a caret via the caret prop
can be rendered with or without drop shadow via the dropShadow prop
accepts a <PopoverContent> sub component
<PopoverContent>...
accepts elements for rendering via the children prop
takes a custom class name with the className prop
Migration
Popover was previously only available as unstable in previous versions of Carbon. So no migration guidance is necessary
A popover is a piece of UI that pops over or renders on top of other UI on the
page. It's a component "primitive" meaning it can be used to help make more
complex components that utilize this behavior.
Popover Behaviors
through click, hover, key press, or focus
having a different popover be triggered and shown
typically anchored to a triggering element
Usage
<Popover/>
...top
,bottom
,left
,right
(etc) via thealign
propclassName
highContrast
,light
, and defaultstring
orelementType
to render as a custom top level nodecaret
propdropShadow
prop<PopoverContent>
sub component<PopoverContent>
...children
propclassName
propMigration
Popover was previously only available as unstable in previous versions of Carbon. So no migration guidance is necessary
Testing
Further Reading
The text was updated successfully, but these errors were encountered: