GuideMobile ComponentsHelperDialogPopover

Popover/Modal

A popover is a container that displays additional information or options related to a specific element on a page. It can provide context-sensitive help, display related content, or provide a short list of options for users to interact quickly with.

TypeResource
DesignFigma
MobileMobile Storybook
CodeGitlab

Popover Preview

Usage

  import id.co.biofarma.binduiandroid.components.popover.Popover
    Popover(
      id = "popover-bio",
      title = "Lorem Ipsum",
      description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
      variant = "image",
      borderRadius = ComponentRadius.NONE.value,
      imageUrl = "https://images.pexels.com/photos/2325447/pexels-photo-2325447.jpeg",
      showInfoIcon = true,
      showCloseIcon = true,
      onClose = { showPopover = false },
      child = null
      )

Examples

Variant

Set the variant prop to image or custom.

Popover Variant

borderRadius

Set the showCloseIcon prop to none xs sm md lg or full for corner radius variant

Popover showCloseIcon

showCloseIcon

Set the borderRadius prop to true, or false for close icon on top right

Popover showCloseIcon


Props

PropsRequiredDefaultTypedescription
idfalse-stringA unique identifier for the popover.
titlefalse-stringTitle of the popover.
descriptionfalse-stringLong description for the popover.
variantfalseimageimage, customVariant of the popover.
borderRadiusfalsemdnone xs sm md lg fullCorner radius size of popover card .
imageUrlfalse-stringUrl of image in the popover
showCloseIconfalsefalsebooleanShow close button on the top right of popover.
showInfoIconfalsefalsebooleanShow info icon
onClosefalse-() -> UnitAction when user close the popover
onClickItemfalse-() -> UnitAction when click the popover
childfalse-@ComposableChild component of the popover
stylefalse-ModifierModifier for additional styling and layout modifications.
BIND © Biofarma Innovate Next-level Design .