mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
43 lines
649 B
TypeScript
43 lines
649 B
TypeScript
import React from "react";
|
|
import { Meta, StoryObj } from "@storybook/react";
|
|
|
|
import FleetMarkdown from "./FleetMarkdown";
|
|
|
|
const TestMarkdown = `
|
|
# Test Markdown
|
|
|
|
## This is a heading
|
|
|
|
### This is a subheading
|
|
|
|
#### This is a subsubheading
|
|
|
|
|
|
---
|
|
**bold**
|
|
|
|
*italic*
|
|
|
|
[test link](https://www.fleetdm.com)
|
|
|
|
- test list item 1
|
|
- test list item 2
|
|
- test list item 3
|
|
|
|
> test blockquote
|
|
|
|
\`code text\`
|
|
`;
|
|
|
|
const meta: Meta<typeof FleetMarkdown> = {
|
|
title: "Components/FleetMarkdown",
|
|
component: FleetMarkdown,
|
|
args: { markdown: TestMarkdown },
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof FleetMarkdown>;
|
|
|
|
export const Basic: Story = {};
|