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

Allow element rendered by Provider to be configured #8

Conversation

TiddoLangerak
Copy link
Collaborator

The default <div> wrapper isn't valid anywhere in the DOM. By allowing
the wrapper element to be configured it is possible for the user to
change it to something else when needed.

An example use case for this are component libraries with bundled
translations. If a component is intended to be used as phrasing content
then it can't introduce a <div>. Moving the Provider higher up
the tree isn't possible here, as this falls out of the scope of the
library.

The default `<div>` wrapper isn't valid anywhere in the DOM. By allowing
the wrapper element to be configured it is possible for the user to
change it to something else when needed.

An example use case for this are component libraries with bundled
translations. If a component is intended to be used as phrasing content
then it can't introduce a `<div>`. Moving the `Provider` higher up
the tree isn't possible here, as this falls out of the scope of the
library.
@Tankenstein
Copy link
Owner

(merged via another branch)

@Tankenstein Tankenstein closed this Feb 6, 2018
@TiddoLangerak TiddoLangerak deleted the configurable-provider-component branch February 6, 2018 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants