Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
docs: add plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Nov 19, 2024
1 parent fa1ebbe commit 8810591
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .docs/codeeditor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,13 @@ function constructFiles(componentName: string, sources: Record<string, string>)
},
'src/main.ts': {
content: `import { createApp } from 'vue';
import { motionPlugin } from '@oku-ui/motion'
import App from './App.vue';
import './global.css';
createApp(App).mount('#app')`,
const app = createApp(App)
app.use(motionPlugin)
app.mount('#app')`,
isBinary: false,
},
'src/App.vue': {
Expand Down
10 changes: 10 additions & 0 deletions .docs/content/overview/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ Install the component from your command line.

<InstallationTabs value="@oku-ui/motion" />

## Adding the plugin
```ts
import { createApp } from 'vue'
import { motionPlugin } from '@oku-ui/motion'

const app = createApp({})
app.use(motionPlugin)
app.mount('#app')
```

### 2. Import the parts

Import and structure the parts.
Expand Down
2 changes: 2 additions & 0 deletions .docs/content/overview/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ A quick tutorial to walk through installing the packages, as well as the support

<InstallationTabs value="@oku-ui/motion" />

## Adding the plugin
```ts
import { createApp } from 'vue'
import { motionPlugin } from '@oku-ui/motion'

const app = createApp({})
app.use(motionPlugin)
app.mount('#app')
```

## Nuxt modules
Expand Down

0 comments on commit 8810591

Please sign in to comment.