Skip to content

v-phone-input / VPhoneInputMessagesComposableOptions

Interface: VPhoneInputMessagesComposableOptions<Country>

Defined in: dist/types.d.ts:162

Internal

Options for usePhoneInputMessages composable.

Extends

Type Parameters

Country

Country extends VPhoneInputCountryObject

Properties

ariaLabel?

readonly optional ariaLabel: MaybeRef<VPhoneInputMessage<Country, undefined> | null | undefined>

Defined in: dist/props/makePhoneInputMessagesProps.d.ts:43

Customize the phone input aria-label.

Inherited from

VPhoneInputExtractComposableOptions.ariaLabel


country

readonly country: MaybeRef<Country>

Defined in: dist/types.d.ts:166

Country to resolve messages with.


countryAriaLabel?

readonly optional countryAriaLabel: MaybeRef<VPhoneInputMessage<Country> | null | undefined>

Defined in: dist/props/makePhoneInputMessagesProps.d.ts:58

Customize the country input aria-label.

Default Value

'Country for <label>'

Inherited from

VPhoneInputExtractComposableOptions.countryAriaLabel


countryLabel?

readonly optional countryLabel: MaybeRef<VPhoneInputMessage<Country> | null | undefined>

Defined in: dist/props/makePhoneInputMessagesProps.d.ts:49

Customize the country input label.

Inherited from

VPhoneInputExtractComposableOptions.countryLabel


example?

readonly optional example: MaybeRef<VPhoneInputMessage<Country, undefined, undefined> | undefined>

Defined in: dist/props/makePhoneInputMessagesProps.d.ts:28

Customize the phone input example.

Default Value

Use awesome-phonenumber package's getExample function with current country.

Inherited from

VPhoneInputExtractComposableOptions.example


exampleFormat?

readonly optional exampleFormat: MaybeRef<PhoneNumberFormat | null | undefined>

Defined in: dist/props/makePhoneInputMessagesProps.d.ts:19

Format example phone.

Remarks

Using null will disable formating example phone numbers.

Default Value

displayFormat value if available, 'national' otherwise.

Inherited from

VPhoneInputExtractComposableOptions.exampleFormat


invalidMessage?

readonly optional invalidMessage: MaybeRef<VPhoneInputMessage<Country> | null | undefined>

Defined in: dist/props/makePhoneInputMessagesProps.d.ts:74

Customize the phone input invalid message returned by the validate function generated rule.

Default Value

'The "<label>" field is not a valid phone number (example: <example>).'

Inherited from

VPhoneInputExtractComposableOptions.invalidMessage


label?

readonly optional label: MaybeRef<VPhoneInputMessage<Country, undefined> | undefined>

Defined in: dist/props/makePhoneInputMessagesProps.d.ts:37

Customize the phone input label.

Default Value

'Phone'

Inherited from

VPhoneInputExtractComposableOptions.label


placeholder?

readonly optional placeholder: MaybeRef<VPhoneInputMessage<Country> | null | undefined>

Defined in: dist/props/makePhoneInputMessagesProps.d.ts:64

Customize the phone input placeholder.

Inherited from

VPhoneInputExtractComposableOptions.placeholder