This is a Vue version of the DocumentReader component for Keystone 6. The version supplied by Keystone is React only so I wrote this version that uses Vue (2, but should work in 3).
npm install keystone6-documentreader-vueThis is a Vue version of the DocumentReader component for Keystone 6. The version supplied by Keystone is React only so I wrote this version that uses Vue (2, but should work in 3).
Install the npm package:
``bash`
npm install keystone6-documentreader-vue
Then in your Vue component/page:
`js
import DocumentReader from "~/components/KeystoneDocument/Document";
export default {
components: {
DocumentReader,
},
};
`
Then use the component in your Vue template:
`html`
Where document is a Keystone 6 document object from your GraphQL query.
> All elements are unstyled, it is up to you to apply CSS.
Bundle with Bili:
`bash``
npx bili --bundle-node-modules