mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 20:32:20 +03:00
26 lines
536 B
TypeScript
26 lines
536 B
TypeScript
import type { Meta, StoryObj } from "@storybook/react";
|
|
import CodeBlock from "./CodeBlock";
|
|
|
|
const meta: Meta<typeof CodeBlock> = {
|
|
title: "Docs/CodeBlock",
|
|
component: CodeBlock,
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof CodeBlock>;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
code: 'const hello = "world";\nconsole.log(hello);',
|
|
language: "typescript",
|
|
filename: "example.ts",
|
|
},
|
|
};
|
|
|
|
export const WithoutFilename: Story = {
|
|
args: {
|
|
code: "npm install @omniroute/core",
|
|
language: "bash",
|
|
},
|
|
};
|