
        <script setup>
        import { computed } from "vue"
        import { Playground, PropsTable, ExampleHeader, PageTitle } from "@viteplay/vue"
        import { useRoute, useRouter } from "vue-router"
                
        
            let modules_0 = {}
            import  module_0_0 from "/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/_CTemplate/CTemplate.vue"
              modules_0["../CTemplate.vue"] = module_0_0
              
            

        let componentProps = {"CTemplate":[{"name":"count","type":"number","required":false,"desc":""}]}
        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))
        }
        </script>
        <template>
          <PageTitle title="CTemplate" :openInEditor="() => openInEditor('/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/_CTemplate/CTemplate.vue')" />
          <div v-if="hiddenCount > 0" class="hidden-examples-info">
            {{ hiddenCount }} example{{ hiddenCount > 1 ? "s" : null }} hidden, <a @click.prevent="showAll" type="button" style="cursor: pointer">show all</a>
          </div>
          <PropsTable componentName="CTemplate" :componentProps="componentProps" />
          
          <section v-if="shouldRender('basic')" class="viteplay-example">

            <ExampleHeader slug="basic" title="Basic" />

            <div class="viteplay-docs"></div>

            <Playground :darkExample="false" :componentProps="componentProps" :openInEditor="() => openInEditor('/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/_CTemplate/examples/Basic.vue')" :modules="modules_0" :code="decodeURI(`%3Cscript%20setup%3E%0Aimport%20CTemplate%20from%20'../CTemplate.vue'%0A%3C/script%3E%0A%0A%3Ctemplate%3E%0A%20%20%3CCTemplate%20:count=%221%22%20/%3E%0A%3C/template%3E`)" />
          </section>
            
        </template>

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