Placeholder component
See original GitHub issue🚀 Feature Proposal
A clear and concise description of what the feature is.
Add a Placeholder component which serves as default value when no Source is present.
Example implementation: https://gist.github.com/IniZio/68872edc1acf2ecfadf5ffffa06f321a
Motivation
Please outline the motivation for the proposal.
Provider a default value to Target
Example
Please provide an example for how this feature would be used.
const Header = createTeleporter()
<Header.Target/>
<Header.Placeholder>This is placeholder</<Header.Placeholder>
// This is placeholder
const Header = createTeleporter()
<Header.Target/>
<Header.Placeholder>This is placeholder</<Header.Placeholder>
<Header.Source>Source 1</<Header.Source>
// Source 1
Pitch
Why does this feature belong in the xstyled ecosystem?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Placeholder | Semantic UI
A placeholder is used to reserve space for content that soon will appear in a layout. Placeholders can include paragraph , header ,...
Read more >Placeholder Component | Figma Community
7 placeholder variants that you can use when designing interfaces: Default; Image; Video; Audio; Title; Text; Button.
Read more >React Placeholder Component - CoreUI
Placeholders can be used to enhance the experience of your application. They're built only with HTML and CSS, meaning you don't need any...
Read more >Component Placeholders
Purpose. ACS AEM Commons adds some helper CSS classes for creating nice component placeholders for the AEM Classic UI: Extra Icons. cq- ...
Read more >Placeholders · Bootstrap v5.1
Use loading placeholders for your components or pages to indicate something may still be loading.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#12 solves it.
The react-tunnels lib allow toggling
multiple
so that the teleported content will either concat each other or replace other.Currently react-teleporter
Source
just concats each other, but I think replace is actually the more common use case