Popover

At a minimum, popovers should always have a title and a button to close or exit the container. For more information on available customizations, check out the Specifications tab.

TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab

Usage

import { Popover } from 'bio-bind-ui';
<Popover mode='dark' placement='left' />

Examples

Variant

Use variant for change variant of popover component: popover with image, popover information, popover profile and popover form




Mode (Optional)

Use mode for change color mode of popover component: light and dark


Props

PropsRequiredDefaultTypeDescription
renderContentfalse-React.ReactNodeThe content of the popover, which receives a function onClose to close the popover.
placementfalsetoptop left bottom rightSpecifies the placement of the popover relative to the trigger (e.g., top, bottom, left, or right).
modefalselightdark lightThe mode of the popover, determining its visual theme (e.g., light or dark).
childrenfalse-React.ReactNodeThe children or trigger element that opens the popover.
stylefalse-React.CSSPropertiesThe custom inline styles for the popover component.
classNamefalse-stringThe custom CSS class name to apply to the popover.
delayfalse-numberThe delay in milliseconds before the popover is shown.
showCloseIconfalse-booleanFor toggle show or hide close icon.
BIND © Biofarma Innovate Next-level Design .