Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] ConfigProvider and AutoID prefix #886

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

LJKaski
Copy link
Collaborator

@LJKaski LJKaski commented Nov 29, 2024

Description

This PR introduces a new HOC to the library, ConfigProvider. At this point it is used to give the user the option to give the internal AutoID utility a custom prefix to use in the generated IDs. In the future it can be expanded to be used for other global settings for the library.

Motivation and Context

The AutoID prefix feature was requested by a project, and the ConfigProvider seemed like the best way to implement that.

How Has This Been Tested?

So far tested by running locally in styleguidist and wrapping components in the provider

Release notes

ConfigProvider

  • Implement ConfigProvider HOC. Can currently be used to give a custom prefix for autogenerated IDs of its children

@LJKaski LJKaski added the enhancement New feature or request label Nov 29, 2024
@LJKaski LJKaski self-assigned this Nov 29, 2024
@LJKaski LJKaski requested a review from riitasointi as a code owner November 29, 2024 12:43
@LJKaski LJKaski force-pushed the feature/auto-id-identifier branch from ff3d0cf to 0cc6de0 Compare January 9, 2025 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

1 participant