Skip to content

Commit

Permalink
feat: add story for paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
karimim committed Sep 23, 2024
1 parent 0cd8802 commit af02388
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Canvas, Controls, Meta } from '@storybook/blocks';
import * as ParagraphStories from './paragraph.stories';
import StylesPackageImport from '@/shared/styles-package-import.mdx';

<Meta of={ParagraphStories} />

<div className="docs-title">
# Paragraph

<nav>
<link-design of={JSON.stringify(ParagraphStories)}></link-design>
</nav>
</div>

This is a default paragraph without size variants.

<Canvas of={ParagraphStories.Default} sourceState="shown" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { MetaExtended } from '@root/types';

const meta: MetaExtended = {
id: '7ecd87f1-de96-4e39-a057-ba1798eb69593',
title: 'Elements/Paragraph',
parameters: {
badges: [],
design: {
type: 'figma',
url: 'https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=26-49',
},
},
};

export default meta;

type Story = StoryObj;

export const Default: Story = {
render: () => html`
<p>
This is a paragraph. It is a block of text that is separated from other blocks of text by a
blank line. It is usually indented at the beginning of the first line. The first word of a
paragraph is often indented more than the rest of the paragraph.
</p>
<p>
This is a paragraph. It is a block of text that is separated from other blocks of text by a
blank line. It is usually indented at the beginning of the first line. The first word of a
paragraph is often indented more than the rest of the paragraph.
</p>
`,
};

0 comments on commit af02388

Please sign in to comment.