primevue-mirror/doc/badge/ImportDoc.vue

21 lines
423 B
Vue

<template>
<DocSectionText v-bind="$attrs"></DocSectionText>
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
// import as component
import Badge from 'primevue/badge';
import OverlayBadge from 'primevue/overlaybadge'; // optional
`
}
};
}
};
</script>