-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(link): ajoute des exemples brut et reset
- Loading branch information
1 parent
1c01df7
commit fc03a3b
Showing
4 changed files
with
21 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<% const sample = getSample(include); %> | ||
|
||
<%- sample('Lien brut', '../sample/link-default', {link: { classes: [`${prefix}-raw-link`] } }, true); %> | ||
|
||
<%- sample('Lien externe brut', '../sample/link-default', {link: { label: 'Lien externe', href:'https://www.systeme-de-design.gouv.fr/', classes: [`${prefix}-raw-link`], attributes: { target: '_blank'} } }, true); %> | ||
|
||
<%- sample('Groupe de liens bruts', '../sample/links-group', { linksGroup: { classes: [`${prefix}-raw-link`], links: [{ label: 'Lien externe', href:'https://www.systeme-de-design.gouv.fr/', attributes: { target: '_blank'} }, { label: 'Label lien', href:'../' }, { label: 'Label lien', href:'../' } ] } }, true); %> |
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,5 @@ | ||
<% const sample = getSample(include); %> | ||
|
||
<%- sample('Lien réinitialisé', '../sample/link-default', {link: { classes: [`${prefix}-reset-link`] } }, true); %> | ||
|
||
<%- sample('Groupe de liens réinitialisés', '../sample/links-group', { linksGroup: { groupCount: 4, classes: [`${prefix}-reset-link`] } }, true); %> |
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,7 @@ | ||
title: Lien | ||
description: Le lien permet la navigation entre une page et un autre contenu au sein de la même page, du même site ou externe. Pour les actions d’un autre type - comme la soumission d’un formulaire - il faut utiliser le composant bouton. | ||
doc: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/lien | ||
subdir: | ||
title: Variantes | ||
raw: Liens bruts | ||
reset: Liens réinitialisés |
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