vuetifyjs / vuetifyjs/vuetify

[Feature Request] Dynamic Defaults/Overrides Providers

Open
#17,192 0 comments 2 reactions 2 assignees View on GitHub

@KaelWD is already working on this.

Since Aug 21, 2023.

E: defaults framework T: enhancement
Dominant language
TypeScript
Stars
41k
Forks
7.1k
Avg merge
1d 21h
Merged PRs (30d)
11

Description

Problem to solve

Currently, it is only possible to provide static default overrides when using v-defaults-provider

Proposed solution

Allow to receive a factory of defaults as a possible input.

That could provide a callback that receives context about the object being injected and something useful surroundieg context as well.

For instance, every button that has a href will also prepend an icon by default.

A new component v-overrides-provider could also be created, allowing, for instance, to check all input labels if there is a valid i18n language entry and replacing it if applicable.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.