import Logo from "../../app/components/icons/Logo";
export default {
title: "Components/Icons/Logo",
component: Logo,
parameters: {
layout: "centered",
docs: {
description: {
component:
"The CommunityRule logo component with multiple size variants for different contexts (header, footer, home header). Can display with or without text and adapts colors based on context.",
},
},
},
argTypes: {
size: {
control: { type: "select" },
options: [
"default",
"homeHeaderXsmall",
"homeHeaderSm",
"homeHeaderMd",
"homeHeaderLg",
"homeHeaderXl",
"header",
"headerMd",
"headerLg",
"headerXl",
"footer",
"footerLg",
],
description: "The size variant of the logo",
},
showText: {
control: { type: "boolean" },
description: "Whether to show the text portion of the logo",
},
},
tags: ["autodocs"],
};
export const Default = {
args: {
size: "default",
showText: true,
},
};
export const Sizes = {
args: {
showText: true,
},
render: (args) => (
),
parameters: {
docs: {
description: {
story:
"Different size variants available for the logo component across different contexts.",
},
},
},
};
export const IconOnly = {
args: {
size: "default",
showText: false,
},
render: (args) => (
Icon Only - Default Sizes
Icon Only - Home Header Sizes
),
parameters: {
docs: {
description: {
story:
"Logo variants with only the icon, no text. Useful for compact spaces.",
},
},
},
};
export const HomeHeaderContext = {
args: {},
render: () => (
Home Header Context (White Text)
XSmall:
Small:
Medium:
Large:
XLarge:
),
parameters: {
docs: {
description: {
story:
"Home header context showing white text variants. These are used on dark/transparent backgrounds.",
},
},
},
};
export const HeaderContext = {
args: {},
render: () => (
Header Context (Dark Text)
Default:
Medium:
Large:
XLarge:
),
parameters: {
docs: {
description: {
story:
"Header context showing dark text variants. These are used on light backgrounds.",
},
},
},
};
export const FooterContext = {
args: {},
render: () => (
Footer Context (Larger Sizes)
),
parameters: {
docs: {
description: {
story:
"Footer context showing larger size variants for footer placement.",
},
},
},
};