limestone/Popup
Modal component that appears at the bottom of the screen and takes up the full screen width.
Loading Live Preview
Loading Live Preview
Members
Section titled “Members ”Popup Component
Section titled “Popup   Component ”A stateful component that renders a popup in a ui/FloatingLayerui/FloatingLayer.FloatingLayer.
Extends:
limestone/Popuplimestone/Popup.PopupBase
Properties
noAnimation
Section titled “noAnimation”Disables transition animation.
Default: falsenoAutoDismiss
Section titled “noAutoDismiss”Indicates that the popup will not trigger onClose when the user presses the cancel/back (e.g. ESC) key or
taps outside the popup.
onClose
Section titled “onClose”Called on:
pressing
ESCkey,clicking on outside the boundary of the popup, or
moving spotlight focus outside the boundary of the popup when
spotlightRestrictis'self-first'.
Event payload:
pressing
ESCkey, carriesdetailproperty containinginputTypevalue of'key'.clicking outside the boundary of the popup, carries
detailproperty containinginputTypevalue of'click'.
It is the responsibility of the callback to set the open property to false.
onHide
Section titled “onHide”Called after hide transition has completed, and immediately with no transition.
onKeyDown
Section titled “onKeyDown”Called when a key is pressed.
onShow
Section titled “onShow”Called after show transition has completed, and immediately with no transition.
Note: The function does not run if Popup is initially opened and
limestone/Popuplimestone/Popup.PopupBase.noAnimation is true.
Controls the visibility of the Popup.
By default, the Popup and its contents are not rendered until open.
position
Section titled “position”Position of the Popup on the screen.
Default: 'bottom'Scrim type.
Values:
'transparent','translucent', or'none'.
'none' is not compatible with spotlightRestrict of 'self-only', use a transparent scrim
to prevent mouse focus when using popup.
Restricts or prioritizes navigation when focus attempts to leave the popup.
Values:
'self-first', or'self-only'.
When using self-first, attempts to leave the popup via 5-way will fire onClose based
on the following values of position:
'bottom'- When leaving via 5-way up'top'- When leaving via 5-way down'left'- When leaving via 5-way right'right'- When leaving via 5-way left'center'- When leaving via any 5-way direction
Note: If onClose is not set, then this has no effect on 5-way navigation. If the popup
has no spottable children, 5-way navigation will cause the Popup to fire onClose.
Popup( ) → A stateful component that renders a popup in a ui/FloatingLayerui/FloatingLayer.FloatingLayer.
0 Params
Returns
PopupBase Component
Section titled “PopupBase   Component ”The base popup component.
Properties
Required Property • children
Section titled “Required Property • children”The contents to be displayed in the body of the popup.
Set the priority with which screen reader should treat updates to live regions for the Popup.
noAnimation
Section titled “noAnimation”Disables transition animation.
Default: falseonHide
Section titled “onHide”Called after the popup's "hide" transition finishes.
onShow
Section titled “onShow”Called after the popup's "show" transition finishes.
Controls the visibility of the Popup.
By default, the Popup and its contents are not rendered until open.
position
Section titled “position”Position of the Popup on the screen.
Default: 'bottom'The ARIA role for the Popup.
spotlightId
Section titled “spotlightId”The container id for spotlight/SpotlightContainerDecorator/#SpotlightContainerDecoratorspotlight/SpotlightContainerDecorator/#SpotlightContainerDecorator.spotlightId.
Default: nullRestricts or prioritizes navigation when focus attempts to leave the popup.
It can be either 'none', 'self-first', or 'self-only'.
Note: The ready-to-use limestone/Popuplimestone/Popup.Popup component only supports
'self-first' and 'self-only'.