Skip to contentPorsche Design System
You are currently viewing an earlier release of the Porsche Design System.Switch to the latest Porsche Design System documentation.
SearchGitHub repository of Porsche Design SystemOpen settings sidebar
Flyout Table of ContentsPropertiestype BreakpointCustomizable<T> = { base: T; xs?: T; s?: T; m?: T; l?: T; xl?: T; xxl?: T; };PropertyAttributeDescriptionTypeDefaultaria ariaSets ARIA attributes on the flyout dialog element for improved screen reader accessibility.type FlyoutAriaAttribute = {
  'aria-label'?: string;
}
undefined
backdrop backdropSets the backdrop style. Use blur when background content is irrelevant; use shading when users still need visual context.type FlyoutBackdrop =
'blur'
'shading'
'blur'
background backgroundSets the background color of the flyout panel (canvas or surface).type FlyoutBackground =
'canvas'
'surface'
'canvas'
disableBackdropClick disable-backdrop-clickWhen enabled, clicking the backdrop will not close the flyout.booleanfalsefooterBehavior footer-behaviorControls footer behavior. fixed keeps it anchored at the bottom; sticky pins it only when content overflows.type FlyoutFooterBehavior =
'sticky'
'fixed'
'sticky'
fullscreen 🛠fullscreenIf true the flyout stretches to the full viewport width with squared corners. Useful for smaller viewports where the flyout would otherwise fill the screen but still show rounded corners.boolean
BreakpointCustomizable<boolean>
false
open openControls whether the flyout panel is visible.booleanfalseposition positionSets the side the flyout slides in from — start for left or end for right in LTR layouts.type FlyoutPosition =
'start'
'end'
'end'
EventsEventDescriptionTypedismiss Emitted when the user closes the flyout via the close button, backdrop click, or Escape key.CustomEvent<void>motionHiddenEnd Emitted after the flyout's close transition completes and the panel is fully hidden.type FlyoutMotionHiddenEndEventDetail = TransitionEvent
CustomEvent<FlyoutMotionHiddenEndEventDetail>
motionVisibleEnd Emitted after the flyout's open transition completes and the panel is fully visible.type FlyoutMotionVisibleEndEventDetail = TransitionEvent
CustomEvent<FlyoutMotionVisibleEndEventDetail>
SlotsSlotDescriptionisRequiredaltPropallowedTagNames<slot name="header"> Renders a sticky header section above the content area.<slot> Default slot for the main content.<slot name="footer"> Shows a sticky footer section, flowing under the content area when scrollable.<slot name="sub-footer"> Renders additional content below the footer, such as legal information or FAQs. It appears when the flyout has enough space or when the user scrolls to the end.CSS VariablesCSS VariableDescriptiondefaultValue--p-flyout-width Width of the flyout.auto--p-flyout-sticky-top @experimental Exposes the header's height as a read-only CSS variable, set automatically by the component. Slotted sticky content can use this value to offset their top position correctly.--ref-p-flyout-pt Exposes the internally used padding-top of the Flyout as read only CSS variable. When slotting e.g. a media container, this variable can be used to stretch the element to the top of the Flyout.--ref-p-flyout-pb Exposes the internally used padding-bottom of the Flyout as read only CSS variable. When slotting e.g. a media container, this variable can be used to stretch the element to the bottom of the Flyout.--ref-p-flyout-px Exposes the internally used padding-inline of the Flyout as read only CSS variable. When slotting e.g. a media container, this variable can be used to stretch the element to the full horizontal size of the Flyout.
Global settingsColor SchemeAll color tokens use the light-dark() CSS function. Set the theme via the CSS color-scheme property: light for light mode, dark for dark mode, or light dark to follow the user's system preference.LightDarkLight DarkDirectionThe dir global attribute in HTML changes the direction of text and other content within an element. It's most often used on the <html> tag to set the entire page's direction, which is crucial for supporting languages that are written from right to left (RTL), such as Arabic and Hebrew. For example, using <html dir="rtl"> makes the entire page display from right to left, adjusting the layout and text flow accordingly.LTR (left-to-right)RTL (right-to-left)Text ZoomTo ensure accessibility and comply with WCAG 2.2 AA standards, it is mandatory for web content to support text resizing up to at least 200% without loss of content or functionality. Using relative units like rem is a best practice for achieving this, as they allow the text to scale uniformly based on the user's browser settings.100%130%150%200%