Ask Organizer storybook
This commit is contained in:
@@ -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),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user