Back to Vuetify

Defaults providers

packages/docs/src/pages/en/components/defaults-providers.md

4.1.2932 B
Original Source

Defaults providers

The defaults provider allows you to provide specific default prop values to components in a section of your application

<PageFeatures />

Usage

The v-defaults-provider component is used to provide default props to components within its scope. It hooks into the Global configuration feature and makes it easy to assign multiple properties at once or scope out all incoming changes to any children.

<ExamplesUsage name="v-defaults-provider" /> <PromotedEntry />

API

ComponentDescription
v-defaults-providerPrimary Component
<ApiInline hide-links />

Examples

Defaults

The v-defaults-provider expects a prop defaults which looks the same as the defaults object that you can pass to createVuetify when creating your application.

<ExamplesExample file="v-defaults-provider/prop-defaults" />