Components

BaseFormPanel

The drawer or dialog that hosts create and edit forms across the apps.

components/ui/form/BaseFormPanel.vue
View in the demo

Example

On phones (below 600px) both variants open as a bottom sheet as tall as their content, with the buttons right under the last field; a long form grows up to 90% of the screen and scrolls inside. From 600px the drawer slides in from the side and the dialog is centred.

API

Props

Name
Type
Default
Description
titlestring—The heading of the panel.
descriptionstring—A sentence under the title.
iconstring—An icon tile next to the title.
variant"drawer" | "dialog""drawer"drawer (side panel) or dialog (centred). Below 600px both are a bottom sheet.
widthstring | number—The width of the panel.
hide-footerboolean—Removes the footer bar, for panels that only show content, such as the keyboard shortcuts sheet.
flushboolean—Removes the body padding, for content with full-width rows and dividers.
v-modelbooleanfalseWhether it is open.

Slots

Name
Slot props
Description
#default—The form, usually a BaseForm with layout="panel".
#footer—Actions for a panel without a BaseForm (a BaseForm places its own buttons there). The footer hides while empty.

Events

Name
Payload
Description
@update:modelValue[value: boolean]—

Accessibility

Escape closes it, focus moves into the panel when it opens and returns to the trigger when it closes. With unsaved changes BaseForm asks before closing.

© 2026 melsami UI.
Developer documentation for melsami UI.