| id | title |
|---|---|
overlay |
Overlay |
<Overlay isVisible={this.state.isVisible}>
<Text>Hello from Overlay!</Text>
</Overlay>;
{
this.state.visible && (
<Overlay isVisible>
<Text>Hello from Overlay!</Text>
</Overlay>
);
}
<Overlay
isVisible={this.state.isVisible}
windowBackgroundColor="rgba(255, 255, 255, .5)"
overlayBackgroundColor="red"
width="auto"
height="auto"
>
<Text>Hello from Overlay!</Text>
</Overlay>;borderRadiuschildrencontainerStylefullScreenheightisVisibleoverlayBackgroundColoroverlayStylewidthwindowBackgroundColor
Border radius for the overlay
| Type | Default |
|---|---|
| number | 3 |
What the modal will render
| Type | Default |
|---|---|
| any | none |
Style of the overlay container
| Type | Default |
|---|---|
| object (style) | various styles |
If set to true, the modal will take up the entire screen width and height
| Type | Default |
|---|---|
| boolean | none |
Height of the overlay
| Type | Default |
|---|---|
| string or number | window height - 180 |
If true, the overlay is visible
| Type | Default |
|---|---|
| boolean | none |
Background color of the actual overlay
| Type | Default |
|---|---|
| string | white |
style of the actual overlay
| Type | Default |
|---|---|
| object (style) | various styles |
Width of the overlay
| Type | Default |
|---|---|
| string or number | window width - 80 |
Background color for the overlay background
| Type | Default |
|---|---|
| string | rgba(0, 0, 0, .5) |
