2023-08-31 19:16:21 +00:00
|
|
|
import { Canvas, Meta, Story } from "@storybook/addon-docs";
|
2023-08-15 00:42:10 +00:00
|
|
|
|
|
|
|
import {
|
|
|
|
Examples,
|
|
|
|
Example,
|
|
|
|
Title,
|
|
|
|
CustomArgsTable,
|
|
|
|
VariantsTable,
|
|
|
|
VariantRow,
|
|
|
|
} from "@calcom/storybook/components";
|
|
|
|
|
|
|
|
import Logo from "./Logo";
|
2023-01-04 13:05:00 +00:00
|
|
|
|
|
|
|
<Meta title="UI/Logo" component={Logo} />
|
|
|
|
|
2023-08-31 19:16:21 +00:00
|
|
|
<Title title="Logo" suffix="Brief" subtitle="Version 2.0 — Last Update: 28 Aug 2023" />
|
2023-01-04 13:05:00 +00:00
|
|
|
|
|
|
|
## Definition
|
2023-08-15 00:42:10 +00:00
|
|
|
|
2023-01-04 13:05:00 +00:00
|
|
|
Main Cal.com brand logo
|
|
|
|
|
|
|
|
<CustomArgsTable of={Logo} />
|
|
|
|
|
2023-08-31 19:16:21 +00:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
<Examples>
|
|
|
|
<Example title="Default">
|
|
|
|
<Logo src={"https://app.cal.com/api/logo"} />
|
|
|
|
</Example>
|
|
|
|
<Example title="Small">
|
|
|
|
<Logo src={"https://app.cal.com/api/logo"} small />
|
|
|
|
</Example>
|
|
|
|
<Example title="As an Icon">
|
|
|
|
<Logo src={"https://app.cal.com/api/logo"} icon />
|
|
|
|
</Example>
|
|
|
|
</Examples>
|
|
|
|
|
2023-01-04 13:05:00 +00:00
|
|
|
<Canvas>
|
2023-08-31 19:16:21 +00:00
|
|
|
<Story
|
|
|
|
name="Logo"
|
|
|
|
args={{
|
|
|
|
icon: false,
|
|
|
|
src: "https://app.cal.com/api/logo",
|
|
|
|
small: false,
|
|
|
|
}}>
|
|
|
|
{(args) => (
|
|
|
|
<VariantsTable titles={[""]} columnMinWidth={150}>
|
|
|
|
<VariantRow>
|
|
|
|
<Logo {...args} />
|
|
|
|
</VariantRow>
|
|
|
|
</VariantsTable>
|
|
|
|
)}
|
2023-01-04 13:05:00 +00:00
|
|
|
</Story>
|
|
|
|
</Canvas>
|