
        <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/CTrash/CTrash.vue"
              modules_0["../CTrash.vue"] = module_0_0
              
            

            let modules_1 = {}
            import  module_1_0 from "/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/CTrash/CTrash.vue"
              modules_1["../CTrash.vue"] = module_1_0
              
            

        let componentProps = {"CTrash":[{"name":"disabled","type":"boolean","required":false,"desc":"ボタンの有効無効の切り替え\n@example disabled: false"}]}
        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","disabled"].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="CTrash" :openInEditor="() => openInEditor('/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/CTrash/CTrash.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="CTrash" :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/CTrash/examples/Basic.vue')" :modules="modules_0" :code="decodeURI(`%3Cscript%20setup%3E%0Aimport%20CTrash%20from%20'../CTrash.vue'%0Aconst%20clickBtn%20=%20()%20=%3E%20alert('test')%0A%3C/script%3E%0A%0A%3Ctemplate%3E%0A%20%20%3CCTrash%20:disabled=%22false%22%20@click=%22clickBtn%22%20/%3E%0A%3C/template%3E`)" />
          </section>
            

          <section v-if="shouldRender('disabled')" class="viteplay-example">

            <ExampleHeader slug="disabled" title="disabled" />

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

            <Playground :darkExample="false" :componentProps="componentProps" :openInEditor="() => openInEditor('/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/CTrash/examples/disabled.vue')" :modules="modules_1" :code="decodeURI(`%3Cscript%20setup%3E%0Aimport%20CTrash%20from%20'../CTrash.vue'%0A%3C/script%3E%0A%0A%3Ctemplate%3E%0A%20%20%3CCTrash%20:disabled=%22true%22%20/%3E%0A%3C/template%3E`)" />
          </section>
            
        </template>

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