Skip to content

Commit 3e746c3

Browse files
committed
docs: 📝 add new DsfrTile prop to documentation
1 parent d9d74a2 commit 3e746c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/DsfrTile/DsfrTile.stories.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export default {
2727
control: 'boolean',
2828
description: 'Permet le basculement de la tuile en mode horizontal',
2929
},
30+
disabled: {
31+
control: 'boolean',
32+
description: 'Permet de rendre la tuile désactivée et non-cliquable',
33+
},
3034
to: {
3135
control: 'text',
3236
description: 'Lien vers lequel la tuile pointe. Peut être une string ou objet à donner à `RouterLink` ou un lien externe (`string` commençant par `"http"`)',
@@ -55,6 +59,7 @@ export const TuileSimple = (args) => ({
5559
:imgSrc="imgSrc"
5660
:description="description"
5761
:horizontal="horizontal"
62+
:disabled="false"
5863
:to="to"
5964
:title-tag="titleTag"
6065
/>
@@ -70,6 +75,7 @@ TuileSimple.args = {
7075
imgSrc: 'http://placekitten.com/g/200/200',
7176
description: 'Une tuile absolument formidable',
7277
horizontal: false,
78+
disabled: false,
7379
to: '#',
7480
titleTag: 'h2',
7581
}

0 commit comments

Comments
 (0)