Installation

npx @v-moravec/ui add sidebar
Code will be added to ~/components/ui/sidebar/. You can further customize it there.

Props

NameType
position
"bottom" | "right" | "left" | undefined
showOverlay
boolean | undefined
preventClose
boolean | undefined
modelValue
boolean | undefined

<UiSidebar

position="

"

show-overlay="

"

prevent-close="

"

></UiSidebar>

Slots

NameType
activator
{ open: () => void; }
default
{ close: () => void; }