@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
72 lines (71 loc) • 1.51 kB
JavaScript
import e from "../FolderCard/FolderCard.es.js";
const l = {
title: "Components/FolderCard",
component: e,
argTypes: {
title: {
description: "Title of the folder.",
control: "text",
table: {
type: { summary: "string" }
},
required: !0
},
subtitle: {
description: "Subtitle of the folder.",
control: "text",
table: {
type: { summary: "string" }
},
required: !0
},
isSelected: {
description: "Indicates if the folder is selected.",
control: "boolean",
table: {
type: { summary: "boolean" },
defaultValue: { summary: "false" }
}
},
onSelect: {
description: "Callback triggered when the folder is selected.",
action: "folder-selected",
table: {
type: { summary: "() => void" }
}
},
width: {
description: "Width of the folder.",
control: "text",
table: {
type: { summary: "string" },
defaultValue: { summary: "320px" }
}
},
onClick: {
description: "Callback triggered on click.",
action: "clicked",
table: {
type: { summary: "() => void" }
}
}
}
}, t = {
args: {
title: "Mon premier dossier",
subtitle: "0 dossier(s), 1 formulaire(s)",
isSelected: !1,
width: "320px"
}
}, o = {
args: {
...t.args,
isSelected: !0,
title: "Selected Folder"
}
};
export {
t as Default,
o as Selected,
l as default
};