
        <script setup>
        import { computed } from "vue"
        import { Example, PropsTable, PageTitle } from "@viteplay/vue"
        import { useRoute, useRouter } from "vue-router"
            
        let componentProps = {"CLogoPop":[{"name":"p_ImgSrc","type":"string","required":false,"desc":"画像を格納する場合はpiblicに入れて、srcは'/'から開始すること\n@example p_ImgSrc: '/img/MYAAA.png'"}]}
        let route = useRoute()
        let router = useRouter()
        let focusId = computed(() => route.query.focus && route.hash.slice(1))
        let shouldRender = (slug) => {
          return !route.query.focus || slug === focusId.value
        }
        let hiddenCount = computed(() => {
          return ["basic"].filter((slug) => !shouldRender(slug)).length
        })

        let showAll = () => {
          router.push({ query: {}, hash: route.hash })
        }

        let openInEditor = (file) => {
           fetch('/__open-in-editor?file=' + encodeURIComponent(file))
        }
        let examples = [
          {
                title: "Basic",
                slug: "basic",
                docs: {"content":"<p>画像URLが <code>/</code> から始まる場合、画像は <code>public</code>フォルダに入っている必要性があります。</p>\n","attrs":{}},
                // encodeURI because the example will contain html tags
                // which will cause this component to be incorrectly parsed
                code: decodeURI("%3Cscript%20setup%3E%0Aimport%20CLogoPop%20from%20'../CLogoPop.vue'%0A%0A//%20%E7%94%BB%E5%83%8F%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%99%E3%82%8B%0Aconst%20imgSrc%20=%20'/img/MYAAA.png'%0A%3C/script%3E%0A%0A%3Ctemplate%3E%0A%20%20%3CCLogoPop%20:p_ImgSrc=%22imgSrc%22%20class=%22test%22%20/%3E%0A%3C/template%3E%0A%3Cstyle%3E%0A.test%20%7B%0A%20%20width:%20500px;%0A%7D%0A%3C/style%3E"),
                iframeUrl: "/__iframe/CLogoPop-basic.html",
                openInEditor: import.meta.env.DEV 
                  ? () => openInEditor("/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/CLogoPop/examples/Basic.vue") 
                  : undefined 
              }
        ]
        </script>
        <template>
          <PageTitle title="CLogoPop" :openInEditor="() => openInEditor('/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/CLogoPop/CLogoPop.vue')" />
          <div v-if="hiddenCount > 0" class="hidden-examples-info">
            {{ hiddenCount }} example{{ hiddenCount > 1 ? "s" : null }} hidden, <a class="viteplay-link" type="button" @click.prevent="showAll">show all</a>
          </div>
          <PropsTable componentName="CLogoPop" :componentProps="componentProps" />
          <template  
            v-for="example in examples" 
            :key="example.slug">
            <Example 
              v-if="shouldRender(example.slug)"
              :example="example" 
              :componentProps="componentProps" />
          </template>
        </template>

<style scoped>
.hidden-examples-info {
  margin: 20px 0;
}
</style>
      