Drop

a container that is overlaid next to a target

Props

align

How to align the drop with respect to the target element. Not specifying a vertical or horizontal alignment will cause it to be aligned in the center.

{"top": "top", "left": "left"}
{"bottom": "bottom", "right": "right"}

elevation

Elevated height of the target, indicated via a drop shadow. Only applicable if the Drop isn't plain.

"none""xsmall""small""medium""large""xlarge""string"

onClickOutside

Function that will be invoked when the user clicks outside the drop.
() => {}

onEsc

Function that will be called when the user presses the escape key inside the drop.

() => {}

overflow

How to control the overflow inside the drop.
"auto""hidden""scroll""visible""string"
{
horizontal:
"auto""hidden""scroll""visible,"
vertical:
"auto""hidden""scroll""visible"
}

plain

Whether the drop element should have no background nor elevation.
truefalse

responsive

Whether to dynamically re-place when resized.
truefalse

restrictFocus

Whether the drop should control focus.
truefalse

stretch

If set to true the drop element will be stretched to at least match the width of the target element. If set to align the width of the drop element will be restricted to the width of the target element. The default is true because that is what most uses of Drop want, like Select and Menu.

truefalse"align"

target

Target where the drop will be aligned to. This should be a React reference.

"object"

trapFocus

Traps keyboard focus inside of drop.
truefalse

Theme

drop.maxHeight

The max height of the Drop container.
string

global.drop.background

The background color of Drop.
{"dark": "black", "light": "white"}

global.drop.border.radius

The border radius of the Drop container.
"0px"

global.drop.extend

Any additional style for Drop.
"any CSS"
(props) => {}

global.drop.shadowSize

Elevated height of the Drop.
"small"

global.drop.zIndex

The stack order of the Drop.
"20"