Popover
Importβ
import { Popover } from '@resultadosdigitais/tangram-components'
Propertiesβ
anchorEl
β
open
β
width
β
Type | number |
---|
Descriptionβ
A numeric value from 280 to 620 (that will be converted into pixels) to control the width of the popover.
dismissible
β
Type | bool |
---|---|
Default | false |
Descriptionβ
Sets if the Popover is dismissible making available a button that when clicked closes the Popover.
position
β
Type | Enum of: |
---|---|
Default | Popover.positions.bottom |
Descriptionβ
Determines the position of popover related at anchorEl
.
closeLabelText
β
Type | string |
---|---|
Default | Popover.translations.en.close |
Descriptionβ
Custom text for the label that identifies the close button in the component. This text is not displayed on the screen.
Preset values for English, Brazilian Portuguese and Spanish are available
in Popover.translations.en.close
,
Popover.translations.ptBR.close
and
Popover.translations.es.close
.
onClose
β
Type | func |
---|---|
Param | event: React.SyntheticEvent - The event source of the callback. |
Param | reason: string - Can be Popover.reasonsToClose.clickOutside , |
Descriptionβ
A callback called when Popover requests to be closed.
Popover.reasonsToClose.escape
or Popover.reasonsToClose.close
.
kind
β
children
β
<PopoverTitle />β
Importβ
import { PopoverTitle } from '@resultadosdigitais/tangram-components'