enes

Flyout

The Flyout component is a floating panel that can be used to display additional information or options in a non-intrusive way. It is fully accessible and follows Fluent UI design principles for a seamless user experience.

This is the content of the flyout.

Usage

<script>
  import { Flyout } from 'fluentui-svelte';
</script>

<Flyout>
  <p>This is the content of the flyout.</p>
</Flyout>

The Flyout.

Round Corners

Use the roundCorners prop to control which corners of the flyout are rounded. It accepts 'all', 'top', 'bottom', 'left', or 'right'.

This is the content of the flyout.

Component Props

NameTypeDescription
refBindable HTMLElementThe DOM reference to the flyout element.
childrenSnippetThe content to be displayed inside the flyout.
floatingbooleanWhether to use Floating UI for positioning. Default: false.
referenceHTMLElementThe reference element for Floating UI.
placementPlacementThe placement for Floating UI positioning. Default: 'bottom'.
onPlacementChange(placement: Placement) => voidA callback that is called when the placement changes.
roundCorners'all' | 'top' | 'bottom' | 'left' | 'right'Which corners to round. Default: 'all'.
offsetnumberThe offset for Floating UI positioning. Default: 8.
Element AttributesAll other attributes that can be applied to the flyout element.