You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/eui/src/components/flyout/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,16 @@
4
4
5
5
### `src/components/flyout/flyout.tsx`
6
6
The main flyout component that serves as the entry point for all flyout functionality. It intelligently renders different flyout types based on context:
7
-
-**Session flyouts**: When `session={true}` or within an active session, renders `EuiFlyoutMain`
7
+
-**Session flyouts**: When `session="start"` or within an active session, renders `EuiFlyoutMain`
8
8
-**Child flyouts**: When within a managed flyout context, renders `EuiFlyoutChild`
-**Resizable flyouts**: `EuiFlyoutResizable` component exists but is not integrated into main routing logic
11
11
12
12
#### `session` Prop Behavior
13
13
The `session` prop controls whether a flyout participates in the session management system:
14
-
-**`session={true}`**: Explicitly opt-in to session management. The flyout will be managed as a main flyout.
15
-
-**`session={false}`**: Explicitly opt-out of session management. The flyout will render as an unmanaged standard flyout, bypassing all session logic. This is useful for wrapper components like `EuiCollapsibleNav` that manage their own lifecycle.
16
-
-**`session={undefined}`** (default): Automatically participate in sessions if one is active. If no session is active, renders as a standard flyout.
14
+
-**`session="start"`**: Explicitly opt-in to session management. The flyout will be managed as a main flyout and create a new session.
15
+
-**`session="never"`**: Explicitly opt-out of session management. The flyout will render as an unmanaged standard flyout, bypassing all session logic. This is useful for wrapper components like `EuiCollapsibleNav` that manage their own lifecycle.
16
+
-**`session="inherit"`** (default): Automatically participate in sessions if one is active. If no session is active, renders as a standard flyout.
17
17
18
18
### `src/components/flyout/flyout.component.tsx`
19
19
The core flyout implementation with comprehensive functionality:
@@ -46,7 +46,7 @@ The central state management system for flyout sessions:
46
46
-**Responsive Layout**: `useFlyoutLayoutMode` hook manages responsive behavior for managed flyouts with 90% viewport width rule for switching between `side-by-side` and `stacked` layouts
Renders the primary flyout in a session. Currently a simple wrapper around `EuiManagedFlyout` with `session={true}`. TODO items include handling child flyout presence and adjusting focus/shadow behavior.
49
+
Renders the primary flyout in a session. Currently a simple wrapper around `EuiManagedFlyout` with `session="start"`. TODO items include handling child flyout presence and adjusting focus/shadow behavior.
0 commit comments