schlechtenburg/packages/docs/lib/ComponentDocs.tsx

26 lines
488 B
TypeScript
Raw Normal View History

2022-03-15 23:03:45 +00:00
import {
defineComponent,
PropType,
} from 'vue';
import { ComponentDoc } from 'vue-docgen-api';
import './ComponentDocs.scss';
export default defineComponent({
name: 'ComponentDocs',
props: {
docs: {
type: (null as unknown) as PropType<ComponentDoc>,
required: true,
},
},
setup(props) {
const docs = props.docs;
return () => <section class="docs component-docs">
<h2 id={docs.exportName}>{docs.exportName}</h2>
</section>;
},
});