Anthony Fuchore: update deps85fadb33 years agoHistory
35 lines · 828 B · Vue
RawDownload
<script setup lang='ts'>withDefaults(defineProps<{  value?: boolean  direction?: string}>(), {  value: false,  direction: 'bottom',}) const emit = defineEmits(['close'])</script> <template>  <div    class="fixed top-0 bottom-0 left-0 right-0 z-60"    :class="value ? '' : 'pointer-events-none'"  >    <div      class="        bg-base bottom-0 left-0 right-0 top-0 absolute transition-opacity duration-500 ease-out      "      :class="value ? 'opacity-85' : 'opacity-0'"      @click="emit('close')"    />    <div      class="        bg-base absolute transition-all duration-200 ease-out shadow rounded-md transform        border border-base left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2      "      :class="value ? 'opacity-100' : 'opacity-0'"    >      <slot />    </div>  </div></template>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t