PageContainer
Requires:
@ray-js/ray≥0.5.10
Description
Page container for popping up half-screen or full-screen content from the screen edge or bottom; supports mask, rounded corners, enter/exit animations, and lifecycle callbacks.
Props
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
show | boolean | No | false | Whether to show the container |
duration | number | No | 300 | Animation duration, in milliseconds |
zIndex | number | No | 100 | z-index level |
overlay | boolean | No | true | Whether to show the mask |
position | "top" | "bottom" | "right" | "center" | No | bottom | Placement |
round | boolean | No | false | Whether to show rounded corners |
overlayStyle | string | any | No | - | Custom mask style |
customStyle | string | any | No | - | Custom popup style |
| No | - | Triggered before entering | ||
| No | - | Triggered while entering | ||
| No | - | Triggered after entering | ||
| No | - | Triggered before leaving | ||
| No | - | Triggered while leaving | ||
| No | - | Triggered after leaving | ||
| No | - | Triggered when the mask is clicked |
Valid Values
position
| Value | Description | Since |
|---|---|---|
top | Slide in from the top | - |
bottom | Slide in from the bottom | - |
right | Slide in from the right | - |
center | Display in the center of the screen | - |