Skip to content

Commit

Permalink
chore: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasenkoo committed May 25, 2024
1 parent 4b5f451 commit 0fdf445
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,20 @@
## Install

```shell
# npm
npm install @vuepic/vue-datepicker

# yarn
yarn add @vuepic/vue-datepicker

# or
# pnpm
pnpm add @vuepic/vue-datepicker

npm install @vuepic/vue-datepicker
# bun
bun add @vuepic/vue-datepicker
```

Import and register component
### Import and register component

**Global**

Expand All @@ -65,13 +71,16 @@ app.component('VueDatePicker', VueDatePicker);
**Local**

```vue
<script>
import VueDatePicker from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css';
export default {
components: { VueDatePicker }
}
<template>
<VueDatePicker v-model="date" />
</template>
<script setup>
import { ref } from 'vue';
import VueDatePicker from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css';
const date = ref(null);
</script>
```

Expand Down

0 comments on commit 0fdf445

Please sign in to comment.