-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: moves AnonymousComponent to XAnonymous
Signed-off-by: John Cowen <[email protected]>
- Loading branch information
Showing
5 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/kuma-gui/src/app/x/components/x-anonymous/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# XAnonymous | ||
|
||
A completely empty component with no DOM elements at all i.e: | ||
|
||
```vue | ||
<template> | ||
<slot name="default" /> | ||
</template> | ||
``` | ||
|
||
Mostly used for conditionally rendering an element: | ||
|
||
```vue | ||
<component :is="true ? XTooltip : XAnonymous"> | ||
<strong>Tooltipped</strong> | ||
<template | ||
v-if="true" | ||
#content | ||
> | ||
The tooltip | ||
</template> | ||
</component> | ||
<component :is="false ? XTooltip : XAnonymous"> | ||
<strong>Not Tooltipped</strong> | ||
<template | ||
v-if="false" | ||
#content | ||
> | ||
The tooltip | ||
</template> | ||
</component> | ||
``` | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters