Skip to main content

Popover ๐Ÿ—‘๏ธ

Deprecated

Este componente estรก descontinuado. Substitua pelo Popover next. Para mais informaรงรตes sobre os recursos next leia a documentaรงรฃo.

Importโ€‹

import { Popover } from '@resultadosdigitais/tangram-components'

Propertiesโ€‹

anchorElโ€‹

Typeinstance of Element

Descriptionโ€‹

Sets the anchor element (html element).

openโ€‹

Typebool
Defaultfalse

Descriptionโ€‹

A boolean value to control if render opened or closed.

widthโ€‹

Typenumber

Descriptionโ€‹

A numeric value from 280 to 620 (that will be converted into pixels) to control the width of the popover.

dismissibleโ€‹

Typebool
Defaultfalse

Descriptionโ€‹

Sets if the Popover is dismissible making available a button that when clicked closes the Popover.

positionโ€‹

Type
Enum of:
  • Popover.positions.top
  • Popover.positions.topStart
  • Popover.positions.topEnd
  • Popover.positions.right
  • Popover.positions.rightStart
  • Popover.positions.rightEnd
  • Popover.positions.left
  • Popover.positions.leftStart
  • Popover.positions.leftEnd
  • Popover.positions.bottom
  • Popover.positions.bottomStart
  • Popover.positions.bottomEnd
DefaultPopover.positions.bottom

Descriptionโ€‹

Determines the position of popover related at anchorEl.

closeLabelTextโ€‹

Typestring
DefaultPopover.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โ€‹

Typefunc
Paramevent: React.SyntheticEvent - The event source of the callback.
Paramreason: string - Can be Popover.reasonsToClose.clickOutside,

Descriptionโ€‹

A callback called when Popover requests to be closed.

Popover.reasonsToClose.escape or Popover.reasonsToClose.close.

kindโ€‹

Type
Enum of:
  • Popover.kinds.default
  • Popover.kinds.highlight
DefaultPopover.kinds.default

Descriptionโ€‹

Sets the Popover kind.

childrenโ€‹

Typenode

Descriptionโ€‹

Sets children.

<PopoverTitle />โ€‹

Importโ€‹

import { PopoverTitle } from '@resultadosdigitais/tangram-components'

Propertiesโ€‹

childrenโ€‹

Typenode
Descriptionโ€‹

Sets children.

Feedbackโ€‹

To report a problem or suggest changes, use our improvements form or, if you prefer, open an issue on our Github repository.