-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
karimim
committed
Sep 23, 2024
1 parent
0cd8802
commit af02388
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...ages/documentation/src/stories/components/elements/paragraph/paragraph.docs.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" /> |
34 changes: 34 additions & 0 deletions
34
packages/documentation/src/stories/components/elements/paragraph/paragraph.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
`, | ||
}; |