mirror of
https://github.com/directus/directus.git
synced 2026-02-05 21:45:04 -05:00
Sheet
<v-sheet></v-sheet>
A sheet is a component that holds other components. It provides a visual difference (layer) on the page. It's often used when grouping fields.
Sizing
The sheet component has props for height, width, min-height, min-width, max-height, and max-width. All of these props are in pixels.
Color
The color can be changed via the css variable called --v-sheet-color.
<v-sheet/>
<style>
.v-sheet {
--v-sheet-color: var(-red-600);
}
</style>
Props
n/a
Slots
| Slot | Description | Data |
|---|---|---|
| default | -- |
Events
n/a
CSS Variables
| Variable | Default |
|---|---|
--v-sheet-background-color |
var(--background-page-alt) |
--v-sheet-height |
auto |
--v-sheet-min-height |
var(--input-height) |
--v-sheet-max-height |
none |
--v-sheet-width |
auto |
--v-sheet-min-width |
none |
--v-sheet-max-width |
none |
--v-sheet-padding |
8px |