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

        let componentProps = {"CSpinner":[{"name":"size","type":"number | string","required":false,"desc":"サイズはsizeDict(下記参照)から指定されたサイズを指定するか、数値で指定する\n@example `xs, sm, md, lg, xl, 16, 24 etc`"},{"name":"thickness","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="CSpinner" :openInEditor="() => openInEditor('/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/CSpinner/CSpinner.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="CSpinner" :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/CSpinner/examples/Basic.vue')" :modules="modules_0" :code="decodeURI(`%3Cscript%20setup%3E%0Aimport%20CSpinner%20from%20'../CSpinner.vue'%0A%3C/script%3E%0A%0A%3Ctemplate%3E%0A%20%20%3CCSpinner%20/%3E%0A%20%20%3Chr%20/%3E%0A%20%20%3CCSpinner%20size=%22xs%22%20/%3E%0A%20%20%3CCSpinner%20size=%22sm%22%20/%3E%0A%20%20%3CCSpinner%20size=%22md%22%20/%3E%0A%20%20%3CCSpinner%20size=%22lg%22%20/%3E%0A%20%20%3CCSpinner%20size=%22xl%22%20/%3E%0A%20%20%3Chr%20/%3E%0A%20%20%3CCSpinner%20size=%22100%22%20class=%22_test2%22%20/%3E%0A%3C/template%3E%0A%3Cstyle%3E%0A._test2%20%7B%0A%20%20stroke:%20aqua;%0A%7D%0A%3C/style%3E`)" />
          </section>
            
        </template>

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