Overlay

A conditional overlay component.
It respects the safe-area on iOS by adding extra padding.

It accepts all Box props except for extend.
It can't have padding.

API Reference

Prop
Type
Default
Description
bottom
number | string
children
React.ReactNode
extend
unknown
left
number | string
overflow
'auto' | 'hidden' | 'scroll' | 'visible'
auto
right
number | string
top
number | string
visible
boolean
false
zIndex
number
10

Examples