Download src/shared/components/docs/CodeBlock.stories.tsx from automindy/fiemwl: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/automindy/fiemwl/resolve/main/src/shared/components/docs/CodeBlock.stories.tsx
- Command line
-
hf download hf://spaces/automindy/fiemwl/src/shared/components/docs/CodeBlock.stories.tsx
-
curl -L -o CodeBlock.stories.tsx https://huggingface.co/spaces/automindy/fiemwl/resolve/main/src/shared/components/docs/CodeBlock.stories.tsx
561 Bytes
| 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", | |
| }, | |
| }; | |