Ask Organizer storybook

This commit is contained in:
adilallo
2025-08-27 11:03:56 -06:00
parent d0ce6f16f2
commit 6a66f5f61f
4 changed files with 120 additions and 14 deletions
+35 -4
View File
@@ -32,16 +32,47 @@ export default {
control: "text",
description: "URL for the button link",
},
variant: {
control: { type: "select" },
options: ["centered", "left-aligned", "compact"],
description: "Layout variant for the component",
},
onContactClick: {
action: "contact clicked",
description: "Analytics callback for contact button clicks",
},
},
};
export const Default = {
args: {
title: "Need help getting started?",
subtitle: "Our organizers are here to support you",
description:
"Whether you're forming a new community or improving an existing one, our experienced organizers can provide guidance tailored to your specific needs.",
title: "Still have questions?",
subtitle: "Get answers from an experienced organizer",
buttonText: "Ask an organizer",
buttonHref: "#contact",
variant: "centered",
onContactClick: (data) => console.log("Contact clicked:", data),
},
};
export const LeftAligned = {
args: {
title: "Still have questions?",
subtitle: "Get answers from an experienced organizer",
buttonText: "Ask an organizer",
buttonHref: "#contact",
variant: "left-aligned",
onContactClick: (data) => console.log("Contact clicked:", data),
},
};
export const Compact = {
args: {
title: "Still have questions?",
subtitle: "Get answers from an experienced organizer",
buttonText: "Ask an organizer",
buttonHref: "#contact",
variant: "compact",
onContactClick: (data) => console.log("Contact clicked:", data),
},
};
+9 -1
View File
@@ -15,7 +15,7 @@ export default {
buttonClassName: { control: { type: "text" } },
variant: {
control: { type: "select" },
options: ["hero", "feature"],
options: ["hero", "feature", "ask"],
},
linkText: { control: { type: "text" } },
linkHref: { control: { type: "text" } },
@@ -56,3 +56,11 @@ export const FeatureWithLink = {
linkHref: "#",
},
};
export const Ask = {
args: {
title: "Still have questions?",
subtitle: "Get answers from an experienced organizer",
variant: "ask",
},
};