Skip to content

Commit ec33fc9

Browse files
committed
refactor(docs): improve MazInputPhoneNumber documentation with typing
1 parent 1ee38ab commit ec33fc9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

apps/docs/src/components/maz-input-phone-number.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ description: MazInputPhoneNumber is a powerful and user-friendly component that
2525

2626
The simplest way to use MazInputPhoneNumber - just add it and it works!
2727

28-
<ComponentDemo>
28+
<ComponentDemo expanded>
2929
<MazInputPhoneNumber
3030
v-model="phoneNumber"
3131
v-model:country-code="countryCode"
@@ -42,12 +42,13 @@ The simplest way to use MazInputPhoneNumber - just add it and it works!
4242

4343
```vue
4444
<script setup lang="ts">
45-
import { MazInputPhoneNumber } from 'maz-ui'
45+
import type { MazInputPhoneNumberData } from 'maz-ui/components/MazInputPhoneNumber'
46+
import MazInputPhoneNumber from 'maz-ui/components/MazInputPhoneNumber'
4647
import { ref } from 'vue'
4748
48-
const phoneNumber = ref()
49-
const countryCode = ref()
50-
const results = ref()
49+
const phoneNumber = ref<string>()
50+
const countryCode = ref<string>()
51+
const results = ref<MazInputPhoneNumberData>()
5152
</script>
5253
5354
<template>

0 commit comments

Comments
 (0)