Slide-out quick-view panel for Enso UI.
Install the package:
yarn add @enso-ui/quick-view- exports
QuickViewas its public surface - renders the panel through
Teleportdirectly underbody, avoiding parent stacking contexts and overflow clipping - keeps the slide transition active while using a teleported panel
- supports Bulma column responsiveness through classes passed on the component
- aligns responsive panels to the right edge by default
- exposes the
close()method through template refs and the default slot scope - closes when the user presses
Escape
<script setup>
import QuickView from '@enso-ui/quick-view/bulma';
</script>
<template>
<QuickView class="is-one-third-desktop is-half-tablet is-full-mobile"
@close="quickView = false"
v-if="quickView">
<template #default="{ close }">
<button class="button"
type="button"
@click="close">
Close
</button>
</template>
</QuickView>
</template>Public export available from @enso-ui/quick-view/bulma.
Attributes:
- classes passed to
QuickVieware applied to the internal Bulma.column, so standard column sizing helpers can control panel width responsively - non-class attributes are not applied to the wrapper panel
Events:
closeis emitted after the panel is closed byEscape, by the exposedclose()method, or after the leave transition completes
Exposed:
close()starts the leave transition and emitscloseafter the animation completes
Slots:
- default slot receives
{ close }, the same method exposed on the component instance
@enso-ui/transitions@enso-ui/uibulmapinia
are welcome. Pull requests are great, but issues are good too. Thank you to all the people who already contributed to Enso!