The Popover is a non-modal dialog that floats around its disclosure. It's commonly used for displaying additional rich content on top of something.
import Popover from "@ds-kit/popover"
A basic example of an Popover component can look like this:
<Popover disclosure={<Button variant="primary">Open popover</Button>}> Custom popover </Popover>
<Popover disclosure={<Button variant="primary">Open popover</Button>}> <Div width="6rem" height="6rem" bg="primary" borderRadius="100%" /> </Popover>
<Popover placement="auto-end" disclosure={<Button variant="primary">Open popover</Button>} > Custom very-very-very long popover text </Popover>
borderStyle
string
"solid"
borderWidth
string
"1px"
borderRadius
string
"0.25rem"
borderColor
string
"rgba(33, 33, 33, 0.25)"
bg
string
"white"
disclosure *
element
object
placement
string
"top-center"
visible
bool
false
boundariesElement
string
"scrollParent"
tabIndex
number
0
ariaLabel
string
"aria-label"
boxShadow
string
"sm"
children
node