-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ composant fonctionnel sans js du dsfr
- Loading branch information
1 parent
2a2e5b3
commit 6c6b46c
Showing
5 changed files
with
142 additions
and
42 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Information contextuelle et Infobulle - DsfrTooltip | ||
|
||
|
||
## Un exemple | ||
|
||
|
||
::: code-group | ||
|
||
<Story data-title="Démo" min-h="300px"> | ||
<DsfrTooltipExample /> | ||
</Story> | ||
|
||
<<< docs-demo/DsfrTooltipExample.vue [Code de la démo] | ||
|
||
<<< DsfrTooltip.vue | ||
::: | ||
|
||
<script setup lang="ts"> | ||
import DsfrTooltipExample from './docs-demo/DsfrTooltipExample.vue' | ||
</script> |
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
23 changes: 23 additions & 0 deletions
23
src/components/DsfrTooltip/docs-demo/DsfrTooltipExample.vue
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,23 @@ | ||
<script lang="ts" setup> | ||
import DsfrTooltip from '../DsfrTooltip.vue' | ||
</script> | ||
|
||
<template> | ||
<div class="flex flex-end w-full"> | ||
<DsfrTooltip | ||
content="Texte de l’info-bulle qui peut être très très long" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.w-full { | ||
width: 100%; | ||
} | ||
.flex { | ||
display: flex; | ||
} | ||
.flex-end { | ||
justify-content: flex-end; | ||
} | ||
</style> |