Skip to content

Commit

Permalink
feat: include distanced option in Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Jun 14, 2021
1 parent 2566ae9 commit 1263bbf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions components/blockquote/stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Copyright (c) 2021 Robbert Broersma
-->

import { Meta, Story, Canvas, ArgsTable } from "@storybook/addon-docs/blocks";
import clsx from "clsx";

<!-- Import component and component styles -->

Expand All @@ -13,8 +14,8 @@ import "./index.css";

import README from "./README.md";

export const Template = ({ content, attribution }) =>
`<blockquote class="utrecht-blockquote">
export const Template = ({ content, attribution, distanced }) =>
`<blockquote class="${clsx("utrecht-blockquote", { "utrecht-blockquote--distanced": distanced })}">
<div class="utrecht-blockquote__content">
<p>${content}</p>${
attribution
Expand All @@ -38,6 +39,11 @@ export const Template = ({ content, attribution }) =>
control: "text",
defaultValue: "",
},
distanced: {
description: "Distance the element from adjacent content",
control: "boolean",
defaultValue: true,
},
}}
parameters={{
docs: {
Expand Down

0 comments on commit 1263bbf

Please sign in to comment.