Skip to content

Commit

Permalink
Merge pull request #27 from itsBLOK/main
Browse files Browse the repository at this point in the history
feat: ApplicationCommands component
  • Loading branch information
itsblok authored Sep 18, 2023
2 parents 8111a87 + 0bcd7c2 commit ef3b6fe
Show file tree
Hide file tree
Showing 4 changed files with 342 additions and 265 deletions.
56 changes: 56 additions & 0 deletions docs/.vitepress/theme/components/ApplicationCommands.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<template>
<div class="applicationCommand">
<img v-if="appCmd.icon" class="applicationCommandIcon" :src="appCmd.icon" alt="" />
<div v-if="appCmd.name" class="applicationCommandName">
<span>
{{ appCmd.name }}
</span>
</div>
<div class="optionPill">
<span v-if="optionPillKey" class="optionPillKey">
{{ optionPillKey }}
</span>
<span class="optionPillValue">
{{ optionPillValue }}
</span>
</div>
<div class="optionPill2">
<span v-if="optionPillKey2" class="optionPillKey2">
{{ optionPillKey2 }}
</span>
<span class="optionPillValue2">
{{ optionPillValue2 }}
</span>
</div>
</div>
</template>

<script lang="ts">
import { computed, defineComponent, toRefs } from 'vue'
export default defineComponent({
name: 'ApplicationCommands',
props: {
appCmdIcon: String,
appCmdName: String,
optionPillKey: String,
optionPillValue: String,
optionPillKey2: String,
optionPillValue2: String,
},
setup(props, { slots }) {
const { appCmdIcon, appCmdName } = toRefs(props)
const appCmd = computed(() => ({
icon: appCmdIcon?.value,
name: appCmdName?.value,
}))
return {
appCmd
}
},
})
</script>

<style src="@theme/custom.css"></style>
Loading

0 comments on commit ef3b6fe

Please sign in to comment.