Skip to main content
Kaleidoscope

Panel

A panel is a floating container of components. It provides consistent styling for the surrounds of the container.

Default

By default you get a light-themed floated panel, that wraps the provided children:

Editable example

Elevation

Use elevation to represent a panel's stacking position. Defaults to 2, which is appropriate for most dropdowns, popovers, and non-modal dialogs. See the surfaces doc for more info.

Editable example

Dark mode

Editable example

Best practices

  • A Panel should be used to house information that needs to sit on top of the main layer of content, while keeping the main content within view (e.g. Popover, OptionMenu, Dropdown)
  • Most use cases of the Panel can be better served by the component which makes use of and supersedes the Panel, and implements consistent focus and closing behaviours.