Keynote (vue-keynote
) is a presentation library which enables you to declaratively create your slides using Vue.
-
Use script tag to include Keynote and Vue.
<html> <head> <title>My First Keynote</title> <script src="//unpkg.com/vue"></script> <script src="//unpkg.com/vue-keynote"></script> </head> <body> <div id="app"> <Keynote> <!-- Declare slides here! --> </Keynote> </div> <script> new Vue({ el: '#app' }) // Create a vue app! </script> </body> </html>
-
Create a single file component with following content (say Presentation.vue).
<template> <Keynote> <!-- Declare slides here! --> </Keynote> </template>
-
Install dependencies
npm add --global vue-keynote
-
Start development server
keynote dev Presentation.vue
::: tip Read API docs to know available components. :::