Skip to content
aeria-panel
Used without any props, this component renders only a blank div. Passing the float
or fixed-right
properties, though, you can make modals or side panels.
Example
vue
<script setup lang="ts">
const panelVisible = ref(false)
</script>
<template>
<aeria-panel
float
close-hint
title="Example"
v-model="panelVisible"
@overlay-click="panelVisible = false"
>
This is an example
<template #footer>
<aeria-button large>Ok!</aeria-button>
</template>
</aeria-panel>
</template>
Props
modelValue
any?: ThemodelValue
of this component is the state that determines whether or not the panel is showing. If falsy, the panel is hidden, otherwise it's showing.title
string?: This property sets a text to be shown in the header section of the panel.float
boolean?: Will make the panel a modal.close-hint
boolean?: This property determines that the panel will have a clickable icon that will close it.
Slots
header
: This slot is a replacement for thetitle
prop.footer
: This slot renders a fixed section below the box content.