<template>
  <div class="block">
    <h1>概述</h1>
    <p>用于显示一行简单文字，点击可将文字复制到剪贴板</p>
  </div>
  
  <div class="block">
    <h1>代码示例</h1>
    <RunCase label="基本用法" file="./text-copy/Basic.vue">
      <template #component>
        <Basic />
      </template>
      <template #description>
        <p>传入<code>text</code>参数指定需要复制的内容</p>
      </template>
    </RunCase>
  </div>

  <div class="block">
    <h1>API</h1>
    <h2>props</h2>
    <PropsTable type="text-copy"/>
  </div>
  
</template>

<script setup>
import Basic from '../components/text-copy/Basic.vue'

</script>