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 |
|---|---|---|---|
title | string | — | The heading of the panel. |
description | string | — | A sentence under the title. |
icon | string | — | An icon tile next to the title. |
variant | "drawer" | "dialog" | "drawer" | drawer (side panel) or dialog (centred). Below 600px both are a bottom sheet. |
width | string | number | — | The width of the panel. |
hide-footer | boolean | — | Removes the footer bar, for panels that only show content, such as the keyboard shortcuts sheet. |
flush | boolean | — | Removes the body padding, for content with full-width rows and dividers. |
v-model | boolean | false | Whether 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.