| Name |
Type |
Default value |
Description |
|---|
| AbsolutePosition |
bool |
false |
Lays the panel and its overlay out against the nearest positioned ancestor instead of the screen. The page scroll is then left alone; a named scroller is still locked. |
| AutoToggleScroll |
bool |
false |
Toggles the overflow of the scroller while the panel is open, instead of taking the scroll lock. An AbsolutePosition panel is pushed down by the room the scrollbar gave back. |
| Blocking |
bool |
false |
Keeps a click on the overlay from dismissing the panel. Escape and the swipe are controlled by NoDismissOnEscape and NoSwipe. |
| Body |
RenderFragment? |
null |
Alias of ChildContent, named for the scrolling body between the header and the footer. |
| ChildContent |
RenderFragment? |
null |
The content of the panel. |
| Classes |
BitPanelClassStyles? |
null |
Custom CSS classes for different parts of the panel. |
| CloseButtonTitle |
string? |
null |
The accessible name and tooltip of the close button. Defaults to "Close". |
| CloseIcon |
BitIconInfo? |
null |
The icon of the close button from an external icon library, given as its CSS classes. Takes precedence over CloseIconName. |
| CloseIconName |
string? |
null |
The name of the built-in Fluent UI icon of the close button. Defaults to Cancel. |
| Footer |
RenderFragment? |
null |
The footer of the panel, fixed at its far edge while the body scrolls. |
| FooterText |
string? |
null |
A plain-text footer. Footer takes precedence over it. |
| FullSize |
bool |
false |
Stretches the panel over the whole screen, overriding Size and the size cap. |
| Header |
RenderFragment? |
null |
The header of the panel, fixed at the edge it slides in from while the body scrolls. It names the panel for screen readers unless TitleAriaId or AriaLabel is set. |
| HeaderText |
string? |
null |
A plain-text header, rendered as a level-2 heading. Header takes precedence over it. |
| IsAlert |
bool |
false |
Reports the panel as an alertdialog instead of a dialog, for urgent content the user has to deal with. |
| IsOpen |
bool |
false |
Whether the panel is open. Two-way bindable: the panel writes it back when it dismisses itself. |
| KeepMounted |
bool |
false |
Keeps the content in the page after the first opening, hidden while closed, so its state survives a close. Nothing is rendered before the first opening either way. |
| ModeFull |
bool |
false |
Gives the overlay a background that dims the page. |
| Modeless |
bool |
false |
Renders no overlay, so the page stays usable. A modeless panel is not reported as modal, does not trap the focus and does not lock the scroll. |
| NoAutoFocus |
bool |
false |
Leaves the focus where it is when the panel opens. Otherwise the element marked data-autofocus, or the first focusable one, takes it. |
| NoDismissOnEscape |
bool |
false |
Keeps the Escape key from dismissing the panel. OnEscapeKeyDown still fires. An Escape that closes a popup inside the panel (an open dropdown list) never reaches the panel either way. |
| NoFocusTrap |
bool |
false |
Lets Tab leave the open panel. A Modeless panel never traps the focus. |
| NoRestoreFocus |
bool |
false |
Leaves the focus where it is when the panel closes, instead of returning it to the element that had it before the panel opened. |
| NoScrollLock |
bool |
false |
Leaves the page scrolling while the panel is open. Wheel and touch gestures on the overlay are forwarded to the named or app-shell scroller. |
| NoSwipe |
bool |
false |
Turns off the swipe gesture that dismisses the panel. To keep it but exempt one region (a canvas, a sideways-scrolling table), mark that region data-no-swipe instead; fields and mouse text selection are always exempt. |
| OnDismiss |
EventCallback<MouseEventArgs> |
|
Fires whenever the panel closes: close button, overlay, Escape, swipe, Close/Toggle, or IsOpen set to false from outside. Carries the click where there was one. |
| OnDismissing |
EventCallback<BitPanelDismissArgs> |
|
Fires before the panel closes itself; set Cancel to keep it open, and read Reason to tell the closings apart. Not raised when IsOpen is set to false from outside. |
| OnEscapeKeyDown |
EventCallback<KeyboardEventArgs> |
|
Fires for every Escape pressed inside the open panel, including the ones NoDismissOnEscape refuses - but not for one that closes a popup inside it. |
| OnOpen |
EventCallback |
|
Fires when the panel opens. |
| OnOverlayClick |
EventCallback<MouseEventArgs> |
|
Fires for a click on the overlay, before the panel is dismissed - and for a Blocking panel too. |
| OnSwipeStart |
EventCallback<decimal> |
|
Fires when a swipe starts on the panel, with the start coordinate along its axis. |
| OnSwipeMove |
EventCallback<decimal> |
|
Fires while a swipe moves, with the distance along the panel's axis. |
| OnSwipeEnd |
EventCallback<decimal> |
|
Fires when a swipe ends, with the distance along the panel's axis. |
| OnToggle |
EventCallback<bool> |
|
Fires when the panel opens or closes, with the new state. |
| OnTransitionEnd |
EventCallback<bool> |
|
Fires once the panel has finished sliding in or out, with the state it settled in. The other callbacks fire at the start of the movement. |
| Placement |
BitPlacement? |
null |
The edge the panel slides in from; Start and End follow the text direction, Left and Right stay where they are named in both. Center and the two combined values fall back to End. Defaults to End. |
| Role |
string? |
null |
Replaces the dialog (or alertdialog) role, e.g. complementary or region for a Modeless panel beside the page. |
| ScrollerElement |
ElementReference? |
null |
The scroller to lock while the panel is open, when no selector can reach it. Takes precedence over ScrollerSelector and the BitAppShell scroller. |
| ScrollerSelector |
string? |
null |
The CSS selector of the scroller to lock while the panel is open. Defaults to the BitAppShell scroller, or the page. |
| ShowCloseButton |
bool |
false |
Shows a close button at the end of the header row. |
| Size |
double? |
null |
The size in pixels along the axis the panel slides on (the width at Start/End/Left/Right, the height at Top/Bottom). Unset, the panel fits its content; other units go through --bit-Panel-size or Styles.Container. |
| Styles |
BitPanelClassStyles? |
null |
Custom CSS styles for different parts of the panel. |
| SubtitleAriaId |
string? |
null |
The id of the element that describes the panel (aria-describedby). |
| SwipeTrigger |
decimal? |
null |
How far the panel has to be dragged to be dismissed, as a fraction of its size (0 to 1, default 0.25). |
| TitleAriaId |
string? |
null |
The id of the element that names the panel (aria-labelledby). Defaults to the header; AriaLabel takes precedence. |
| ZIndex |
int? |
null |
The layer of the overlay; the panel sits one above it. A panel declared inside another needs none; this lifts one over a sibling panel or page chrome. |
| Name |
Type |
Default value |
Description |
|---|
| AriaLabel |
string? |
null |
Gets or sets the accessible label for the component, used by assistive technologies. |
| Class |
string? |
null |
Gets or sets the CSS class name(s) to apply to the rendered element. |
| Dir |
BitDir? |
null |
Gets or sets the text directionality for the component's content. |
| Disabled |
bool |
false |
Gets or sets a value indicating whether the component is disabled and cannot respond to user interaction. |
| ForceAnimation |
bool |
false |
Gets or sets a value indicating whether the component's animations play at their full duration even when reduced motion is requested. |
| HtmlAttributes |
Dictionary<string, object> |
new Dictionary<string, object>() |
Captures additional HTML attributes to be applied to the rendered element, in addition to the component's parameters. An attribute written on the component wins over an entry of the same name. |
| Id |
string? |
null |
Gets or sets the unique identifier for the component's root element. |
| Style |
string? |
null |
Gets or sets the CSS style string to apply to the rendered element. |
| TabIndex |
string? |
null |
Gets or sets the tab order index for the component when navigating with the keyboard. |
| Visibility |
BitVisibility |
BitVisibility.Visible |
Gets or sets the visibility state (visible, hidden, or collapsed) of the component. |